WCF Callback with WSDualHttpBinding question

I wanted to achieve my client do not wiat for server to return after making server side WCF call and continnu with rest ofthe code execution; the server will notify client when the mthod call completes and it will be handeled separetly in client;

but with following code, after making server call it clearly waits to get the response and moving next line. what else i should do if i need to achive the said above?

Re: WCF Callback with WSDualHttpBinding question

but I need to achieve other way around than waht you said like..My client SHOULD NOT wait for the server response and keep continneu execution of next line just after firing server methd doWork() and later DoWork() will fire CallBack contract after sleep
time specificed. But what is happening even with Concurrency mode Multiple or Reeentrant mode is my clinet is still waiting to complete the server method response (in between callback is happening anyway) and then moving to next line..where I would like to
eliminate the wait time for server response in finishing the DoWork() method.

Re: WCF Callback with WSDualHttpBinding question

ramana123

My client SHOULD NOT wait for the server response and keep continneu execution of next line just after firing server methd doWork() and later DoWork() will fire CallBack contract after sleep time specificed.

Hi ramana123,

Thanks for your post.

The callback method in the client is asynchronous itself. And it have no relationship with the client request and server side response.

If you want the client side not wait the response from server side and execute other code. I think you should generate async method