Technology

Call a method asynchronously using Polling Pattern in Asp.net 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.

PollPattern

Result:

PollPatternResult

Download (RAR, 612B)

In next article we will discuss waitHandle pattern.

Author

Hassan Askari