Technology

Call a method asynchronously using AsynWaitHandle in Asp.net Part III

In Previous article, we discussed asynchronous method using Polling pattern, its asynchronous method using WaitHandle, now.

In wait handle pattern the IAsynResult has property AsyncWaitHandle which helps to keep an eye on asynchronous call. In this scenario main thread blocks and waits for signal in the meanwhile other tasks can be seen before calling endInvoke.

WaitHandle

Result:

WaitHandleResult

Download (RAR, 18KB)

Author

Inaam Ur Rehman

Inaam ur Rehman is a Senior Software Engineer in Allied Consultants. With a experience over 3 years in ASP.Net, SharePoint, BizTalk, Java Script and JQuery . He is one of the key resources of ASP.Net for the organization.