Is it possible to create a C# web service which can be called asynchronously without the autogenerated client needing to provide a synchronisation via multithreading.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the auto-generated proxy always contains both synchronous and asynchronous versions of every method. For instance, if the server exposes a method called
DoWork, the proxy will contain both aDoWorkmethod and aDoWorkAsyncmethod. When the Async version of the method completes it’s work, the proxy raises a completed event, in this caseDoWorkCompleted. The return value from theDoWorkmethod will be included in the event args .