Skip to content

Instantly share code, notes, and snippets.

@kad1r
Created August 1, 2013 07:49
Show Gist options
  • Save kad1r/6129280 to your computer and use it in GitHub Desktop.
Save kad1r/6129280 to your computer and use it in GitHub Desktop.
Async calls in ASP.Net
delegate void _asyncFunction(params object[] args);
static void Main()
{
_asyncFunction _delegate = new _asyncFunction(Foo);
_delegate.BeginInvoke(new object[] { "fooo" }, null, null);
}
static void Foo(params object[] args)
{
// do something ...
}
// usefull articles
// 1. http://www.ben-morris.com/making-an-asynchronous-call-in-asp-net-on-synchronous-pages
// 2. http://www.dotnetcurry.com/ShowArticle.aspx?ID=237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment