Open jonaslagoni opened 4 years ago
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Already implemented with Tasks, no idea why I didnt notice that.
Gonna reopen, I could really use the Action
callback variant instead of using Tasks. I am restricted in using all features of System.Threading
directly in my code.
You can make this happen now if you use the -t template option. Just save the mustache template to your disk and specify -t pathToDirectory
Is your feature request related to a problem? Please describe.
This is a dublicate issue from https://github.com/swagger-api/swagger-codegen/issues/10424
I want to have the option of asynchronously call the api with the
csharp
generator. I am unable to use the generatorcsharp-netcore
which has this feature.Describe the solution you'd like
With the following document
This is what I changed in the old generated code and what could be generated alongside/in replacement.
Add a method called
CallApiAsync
to the generated ApiClientChange the generated client interface form from
to
Change the generated client methods from:
to
Describe alternatives you've considered
Tried to use the charp-netcore generator which has a version of this feature but it has to be compatible with .NET Framework 4.5. Tried to use the original swagger-codegen library which also does not have this feature.