Like

Welcome On Mobius

Mobius was created by professionnal coders and passionate people.

We made all the best only for you, to enjoy great features and design quality. Mobius was build in order to reach a pixel perfect layout.

Mobius includes exclusive features such as the Themeone Slider, Themeone Shorcode Generator and Mobius Grid Generator.

Our Skills

WordPress90%
Design/Graphics75%
HTML/CSS/jQuery100%
Support/Updates80%

Call a method asynchronously using Delegate EndInvoke Pattern in Asp.net Part I

By Inaam Ur Rehman 6 years ago

We can call a method asynchronously using delegate. Delegate is an object that can wrapped function asynchronously. Delegate is just like the function pointer in c++.

For more information about delegates you can check this Link http://msdn.microsoft.com/en-us/library/ms173171.aspx.

You can invoke any method asynchronously with a little effort using BeginInvoke and EndInvoke methods of the delegate class.

BeginInvoke: Start or initiate asynchronous call as a separate thread.

IAsynResult: Can be used to monitor the progress of the asynchronously call.

EndInvoke: Retrieve the result of asynchronous call and release all thread resources.

We have many techniques to handle delegates like EndInvoke, Callback, WaitHandle, polling etc. but in this article we will focus to the first pattern EndInvoke.

 

EndInvoke

 

Result:

EndInvokeResult

 

Download (RAR, 581B)

Category:
  Technology
this post was shared 0 times
 000
About

 Inaam Ur Rehman

  (10 articles)

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.