During an ASP.NET web request I need to kick off an asynchronous task and then return control back to the web page. Can someone show me the code for calling the below method? Just to be clear, I want the function called async and the web request to complete returning control to the calling page while the function is still processing.
private void FunctionToCall(IInterface objectIWantToPassIn)
{
// do stuff
}
asynckeyword, or "async" as in new thread?((Action<IInterface>)FunctionToCall).BeginInvoke(objectIWantToPassIn, null, null);