-
Notifications
You must be signed in to change notification settings - Fork 6k
[C#] Asynchronous support #809
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
Conversation
Hadou1
commented
May 29, 2015
- Extended api.mustache for CSharp to support asynchronous calls aswell. Every generated method is now generated with a async version
One minor feedback is to add XML documentation to interface methods ref: https://msdn.microsoft.com/en-us/library/vstudio/z04awywx%28v=vs.100%29.aspx |
This is great--however I'm not sure we should just replace the existing c# library with an async one. How about a new csharp-async template set? |
@fehguy from what I understand, the PR will add an additional method (while keeping the old/existing one). For example, a method named "GetPetByIdAsync" will be added by this change while the GetPetById method will still be available. Last time I tested with the non-async methods (GetPetById, UploadFile, UpdatePetWithStatus, etc) and they're working fine. |
[Objc] Add authentication support (API key, HTTP basic)
[Android] Enabling cli config options for android generator
[Objc] Update test case
Hi guys, what i have done is to add a interface for the API classes and as @wing328 wrote an additional method wich is implemented Async. I would definitely integrate this in the existent templates, hence this is normal pattern for me. The reason of adding interfaces is to provide tha ability to work with dependency injection frameworks, eg. Autofac or Ninject |
OK... will do |
@fehguy can you please tell me how to proceed in order to complete this. I'm new to this and i'm not sure how to get the changes the best way. I forked the repo and i would now like to get those latest changes. Do i have to fork again or can i somehow pull the latest changes into my repo? |
@Hadou1 here is what I would recommend:
|
@wing328 Thanks for your reply. I also found that command... but when i try executing this i always get exception like this: $ git pull upstream Please make sure you have the correct access rights |
You need to define an "upstream" (remote) first. Please refer to https://help.github.com/articles/configuring-a-remote-for-a-fork/ for more info. |
@wing328 Thanks.. got it |
… into develop_2.0 Conflicts: modules/swagger-codegen/src/main/resources/csharp/api.mustache
@Hadou1 Thanks for the quick turnaround |