WCF: Callback is not asynchronous
Posted
by Aquarius
on Stack Overflow
See other posts from Stack Overflow
or by Aquarius
Published on 2009-06-05T10:34:10Z
Indexed on
2010/03/12
14:17 UTC
Read the original article
Hit count: 235
Hi, I'm trying to program a client server based on the callback infrastructure provided by WCF but it isn't working asynchronously.
My client connects to the server calling a login method, where I save the clients callback channel by doing
MyCallback callback = OperationContext.Current.GetCallbackChannel()
After that the server does some processing and uses the callback object to communicate with the client.
All this works, the problem resides on the fact that even though I've set the method in the OperationContract as IsOneWay=true, the server still hangs when doing the call to the client.
I've tested this by launching the server for debug in the visual studio, detaching it, launching the client, calling the above mentioned login method, putting a break point in the implemented callback method of the client, and making the server send a response to the client. The server stops doing what it's supposed to do, waiting for the response of the client.
Any help is appreciated.
© Stack Overflow or respective owner