Skip to content

Commit

Permalink
Fix inner if block on net8
Browse files Browse the repository at this point in the history
  • Loading branch information
dualtagh committed Jul 26, 2024
1 parent f1d12ad commit 732aa28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,6 @@ public Task PutForAppAsync<TInput>(
Action<DownstreamApiOptionsReadOnlyHttpMethod>? downstreamApiOptionsOverride = null,
CancellationToken cancellationToken = default)where TOutput : class;

#if NETSTANDARD2_1_OR_GREATER || NET

/// <summary>
/// Calls, using <see cref="HttpMethod.Patch"/>, a downstream API with some input data .
/// By default the input data is serialized in JSON but you can provide your own serializer in the action
Expand Down Expand Up @@ -1368,8 +1366,6 @@ public Task PatchForAppAsync<TInput>(
Action<DownstreamApiOptionsReadOnlyHttpMethod>? downstreamApiOptionsOverride = null,
CancellationToken cancellationToken = default)where TOutput : class;

#endif // NETSTANDARD2_1_OR_GREATER || NET

/// <summary>
/// Calls, using <see cref="HttpMethod.Delete"/>, a downstream API with some input data .
/// By default the input data is serialized in JSON but you can provide your own serializer in the action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace Microsoft.Identity.Abstractions

foreach(string httpMethod in new string[]{ "Get", "Post", "Put", "Patch", "Delete"} )
{
if (httpMethod == "Patch")
if (httpMethod == "Patch" && framework != "net8")
{
#>

Expand Down Expand Up @@ -140,7 +140,7 @@ namespace Microsoft.Identity.Abstractions
}
#>
<#
if (httpMethod == "Patch")
if (httpMethod == "Patch" && framework != "net8")
{
#>

Expand Down

0 comments on commit 732aa28

Please sign in to comment.