Why is IHttpAsyncHandler being called over IHttpHandler?
Posted
by Tim Hardy
on Stack Overflow
See other posts from Stack Overflow
or by Tim Hardy
Published on 2010-04-13T16:48:09Z
Indexed on
2010/04/13
16:53 UTC
Read the original article
Hit count: 385
I made a custom handler that derives from MvcHandler. I have my routes using a custom RouteHandler that returns my new handler for GetHttpHandler(), and I override ProcessRequest() in my custom handler. The call to GetHttpHandler is triggering a breakpoint and my handler's constructor is definitely being called, but BeginProcessRequest() is being called on the base MvcHandler instead of ProcessRequest().
Why are the async methods being called when I haven't done anything to call them? I don't want asynchronous handling, and I certainly didn't do anything explicit to get it. My controllers all derive from Controller, not AsyncController.
I don't have the source code with me right now, but I can add it later if needed. I was hoping someone might know some of the reasons why BeginProcessRequest might be called when it's not wanted.
© Stack Overflow or respective owner