简体   繁体   中英

Issue in Async wcf proxy

I have created async proxy for my wcf application, calling the method first time

ServiceClient serviceClient = new ServiceClient(); serviceClient.GetDataAsync(5);

doesnt invoke the service.

I need to use SetNextstatement in IDE, second time to make this works.

Pls help me to find the root cause of this issue. Thanks

Async invokation doesn't guarantee immediate start of invokation. It starts the process of invokation somewhere in another thread. The actual service call happens after some time (after preparations are finished), in your case it happens somewhere it between stepping to next statement.

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