Skip to content

Commit

Permalink
Fixed missing cancellation token parameters in C# client
Browse files Browse the repository at this point in the history
  • Loading branch information
crackalak committed Mar 13, 2022
1 parent 67cc25b commit c7334a3
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 c7334a3

Please sign in to comment.