开发者

WCF Service - setting IsOneWay=true still results in waiting client

For seme of my service methods, client application needn't wait for any response to be sent over,

So I just decorated these methods with IsOneWay=true, so they look like:

[OperationContract(IsOneWay=true)]
void MethodName(string param1, int param2)

Now, when I call this method from client applicatio开发者_StackOverflown, it still seems to wait for the method to complete processing.

Am I missing something?


This may not be the case here and I don't know how your particular service is configured, but if you try and close the channel used to call the method then the Close call will block until the operation has completed on the server - some more info in this blog post.


Have you updated the service reference?

If your client code does not know that the attribute has been added it will not react to it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜