简体   繁体   中英

Call EAP Web-service method from code expects IAsyncResult

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?

Server and client are independent in the sense that neither can tell what kind of synchronous or asynchronous programming model the other uses.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM