This is something what im trying in MVC 2.0
public class SomeController : AsyncController
{
public void SampleAsync()
{
AsyncManager.OutstandingOperations.Increment();
for(int i=0; i=100000; i++)
{
// Some Code... This loop is just for the testing.
}
AsyncManager.OutstandingOperations.Decrement();
}
public ActionResult SampleCompleted(ActionResult result)
{
return result;
}
}
- My question is what will be the parameter to SampleCompleted here it's ACTIONRESULT. I have tried to find out but every where i'll found something different. So what exactly it is ???
- Do i required to make changes in my Global.ascx file. like RouteCollection.MapRoute to RouteCollection.AsyncMapRoute
for example:
2 . You not need to make changes.