Difference between WCF sync and async call? -


i new wcf, want know difference make sync call or async call, helpful if 1 explain example

thanx

async call client same ohter async operation in .net framework. when make sync call thread wcf service thread hang on. means thread not able other work until service call returns response or exception. in contrast async call run in separate thread (created framework) main thread able continue in operation , notified completion of async call callback (event).

so suppose have winforms application wcf client , want call wcf service. if make sync call take several seconds complete application hangs on processing time = user not able application (only kill task manager). if use async call interactive because async operation handled background thread. async operations suitable interactive solutions or if need multiple operations in parallel.

for example check how article msdn.

just completness described difference between sync , async calls = synchronous , asynchronous processing on client. wcf supports sync , async operations = synchronnous , asynchronous processing on server.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -