Skip to content

Commit

Permalink
Fixed missing cancellation token parameters in C# client (#3932)
Browse files Browse the repository at this point in the history
Fixes #3919
  • Loading branch information
crackalak authored May 18, 2022
1 parent 9df360f commit 0b19353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NSwag.CodeGeneration.CSharp/Templates/Client.Class.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
{% endif -%}

{% if GeneratePrepareRequestAndProcessResponseAsAsyncMethods %}
await PrepareRequestAsync(client_, request_, urlBuilder_).ConfigureAwait(false);
await PrepareRequestAsync(client_, request_, urlBuilder_, cancellationToken).ConfigureAwait(false);
{% else -%}
PrepareRequest(client_, request_, urlBuilder_);
{% endif -%}
Expand All @@ -292,7 +292,7 @@
request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);

{% if GeneratePrepareRequestAndProcessResponseAsAsyncMethods -%}
await PrepareRequestAsync(client_, request_, url_).ConfigureAwait(false);
await PrepareRequestAsync(client_, request_, url_, cancellationToken).ConfigureAwait(false);
{% else -%}
PrepareRequest(client_, request_, url_);
{% endif -%}
Expand Down

0 comments on commit 0b19353

Please sign in to comment.