multithreading - Simulate Fire & Forget scenario using C# Threading -


i have web service, takes lot of time execute. planning delegate processing task background thread & return acknowledgement response user immediately.

in case worried life-time of background thread.
background thread complete delegated task, before main method/thread finishes execution?

you should call service asynchronously.

var service = new youserviceclient(); service.somemethodcompleted +=   (sender, args) +=   {     //  put code here handle response , extract return value or whatever.   } service.somemethodasync(); 

refer how to: call wcf service operations asynchronously more details.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -