I'm on IIS7
I have a button on a page.
When I click it, a new thread is started which calls a void method, which takes 20 to 30 minutes to complete.
The problem is the called void method stops running as soon as control is returned to the browser. (At least it appears to)
protected void _Build_Click(object sender, EventArgs e)
{
if (Build.IsBuilding) return;
var t = new Thread(Build.DoBuild);
t.Start();
}
Should it behave this way or should control be returned to the browser and continue? Is there another way to invoke a method and not wait for it to complete?