Call a method asynchronously using Polling Pattern in Part II

In Previous article we discussed about EndInvoke in asynchronous call. The subject matter of this article is polling pattern in asynchronous call. The IAsynResult object has property IsCompleted that return Boolean which will help us to check whether asynchronous call complete or not. We will add a loop that will always check either IsCompleted become true or false. Calling EndInvoke method will release all thread resources afterwards.




Download (RAR, 612B)

In next article we will discuss waitHandle pattern.


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.