简体   繁体   English

异步wcf代理中的问题

[英]Issue in Async wcf proxy

I have created async proxy for my wcf application, calling the method first time 我为我的wcf应用程序创建了异步代理,第一次调用该方法

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

doesnt invoke the service. 不会调用该服务。

I need to use SetNextstatement in IDE, second time to make this works. 我需要在IDE中使用SetNextstatement,第二次使这个工作。

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. 它在另一个线程的某个地方启动invokation的过程。 The actual service call happens after some time (after preparations are finished), in your case it happens somewhere it between stepping to next statement. 实际的服务调用发生在一段时间后(准备工作完成后),在你的情况下,它发生在踩到下一个语句之间的某个地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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