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


Call a method asynchronously using Delegate EndInvoke Pattern in 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

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.







Download (RAR, 581B)

this post was shared 0 times

 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.