开发者

Understanding Async Methods in Web Service

开发者 https://www.devze.com 2022-12-26 06:21 出处:网络
I consume Java Service in my .NET appliaction. I have one question: When service serialize in .NET he also create Async methods. For example for GetPersons() method ser开发者_StackOverflow中文版vice c

I consume Java Service in my .NET appliaction. I have one question: When service serialize in .NET he also create Async methods. For example for GetPersons() method ser开发者_StackOverflow中文版vice create GetPersonsAsync() which is return void. In which cases I can use this Async methods and what the destination of these methods.


Generally, for async methods, you also need to specify a callback method. The called web method immediately returns but keeps working in the backround. When its done, it invokes your callback method with its results

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号