Click to See Complete Forum and Search --> : WCF Callback async operations


Ishaibin
September 3rd, 2009, 10:32 AM
Hi ,

A question for you guys.

I have implemented an event based wcf service , the client calls a subscription method and the server saves a delegate to the client callback contract operation .
When the server wishes to fire an event it simply executes the delegate to the callback contract operation.
Now what I am not sure of is if the callback operation the server calls is sync or async , meaning if the server will now have to wait until the callback operation on the client side is over or it will simply call it and continue running.

Does anyone have a simple answer for this ?

monalin
September 3rd, 2009, 10:41 AM
Try it out. It's easy enough to test. On the event callback function run some code that takes awhile to complete. Run a debugger on the server and fire the event see if the server immediately jumps to the next line or if the server waits for the event to be complete.

boudino
September 4th, 2009, 03:20 AM
I believe, it should be configurable, so the choice is yours.