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

dotnet-svcutil cancellation token #5461

Open
DefaultUser1606 opened this issue Mar 24, 2024 · 0 comments
Open

dotnet-svcutil cancellation token #5461

DefaultUser1606 opened this issue Mar 24, 2024 · 0 comments
Assignees
Labels
feature request Adding new functionality requiring adding an API to the public contract.

Comments

@DefaultUser1606
Copy link

dotnet-svcutil tool generates asynchronous client code that doesn't accept cancellation tokens. Calling these generated methods becomes problematic inside a cancellable task or thread in .Net 6. We can't just abort a thread anymore in netcore.

I know it's not a valid direct comparison, but swagger c# client generator produces client code with versions of methods that accept cancellation tokens, which allows the caller to abort a request mid-execution in a responsive way.

Is there a possibility that cancellation tokens will be supported by dotnet-svcutil generated code in the future? If not by default then maybe through some optional parameter.

@HongGit HongGit added the feature request Adding new functionality requiring adding an API to the public contract. label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Adding new functionality requiring adding an API to the public contract.
Projects
None yet
Development

No branches or pull requests

3 participants