We have Web Service proxy which has asynchronous method based on Event-based Asynchronous Pattern. But the client code we are making call to web-service is asynchronous but implemented with Asynchronous Programming Model (APM) and it expects Web methods to return IAsyncResult.
How we can do that?
You can use any style on the client that you want. Probably, that should be the TAP pattern nowadays. The server does not need to know, nor can it find out if it wanted to.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.