I checked the System.Web.Mvc.AsyncController in MVC 4.0, it has the comment “Provided for backward compatibility with ASP.NET MVC 3.” does this mean there is a new implementation of async controller in MVC 4? what’s the correct way in MVC 4.0 enable async a controller in order to put the I/O intense operations in other thread pool other than IIS request thread pool?
I checked the System.Web.Mvc.AsyncController in MVC 4.0, it has the comment Provided for backward
Share
Starting from ASP.NET MVC 4, you can now use the
System.Web.Mvc.Controllerclass as the base class and leverage the TAP (Task-based Asynchronous Pattern):Note that you don’t have to use
asyncandawaitkeywords which come with C# 5.0 but they make asynchronous programming much, much easier and more maintainable.Have a look at the following articles: