Last post Apr 16, 2010 04:25 PM by bradwils
Apr 16, 2010 03:35 AM|Kepler|LINK
I thought the default http handling was synchronous, but that's not the behavior I'm seeing.
When I debug into the MVC 2 source, ProcessRequest never gets called on MvcHandler, only BeginProcessRequest. I thought explicit actions had to be taken in order to use asynchronous handling (like deriving from AsyncController, etc), but this seems to happen
on every request. Was I just mistaken about synchronous being the default, or did some strange setting get set without me realizing it?
Any help will be greatly appreciated because this is driving me a little crazy.
Apr 16, 2010 04:25 PM|bradwils|LINK
Short answer: yes.
With the addition of AsyncController, the MvcHandler class needs to be an IHttpAsyncHandler now, which means that as far as the ASP.NET core runtime is concerned, the entry points are now BeginProcessRequest and EndProcessRequest, not ProcessRequest.