Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Client - Add CancellationToken parameter to PrepareRequestAsync #3919

Closed
crackalak opened this issue Mar 3, 2022 · 1 comment · Fixed by #3932
Closed

C# Client - Add CancellationToken parameter to PrepareRequestAsync #3919

crackalak opened this issue Mar 3, 2022 · 1 comment · Fixed by #3932

Comments

@crackalak
Copy link
Contributor

When GeneratePrepareRequestAndProcessResponseAsAsyncMethods is enabled, PrepareRequestAsync and ProcessResponseAsync methods are generated, but only ProcessResponseAsync is passed the cancellation token.

await PrepareRequestAsync(client_, request_, urlBuilder_).ConfigureAwait(false);

await PrepareRequestAsync(client_, request_, url_).ConfigureAwait(false);

await ProcessResponseAsync(client_, response_, cancellationToken).ConfigureAwait(false);

@RicoSuter
Copy link
Owner

This seems wrong (dont see a reason why not to add it in all three).
Can you maybe create a PR to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants