{"id":3606,"date":"2014-03-29T06:46:25","date_gmt":"2014-03-29T06:46:25","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/why-is-ihttpasynchandler-being-called-over-ihttphandler-collection-of-common-programming-errors\/"},"modified":"2014-03-29T06:46:25","modified_gmt":"2014-03-29T06:46:25","slug":"why-is-ihttpasynchandler-being-called-over-ihttphandler-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/why-is-ihttpasynchandler-being-called-over-ihttphandler-collection-of-common-programming-errors\/","title":{"rendered":"Why is IHttpAsyncHandler being called over IHttpHandler?-Collection of common programming errors"},"content":{"rendered":"<p>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&#8217;s constructor is definitely being called, but BeginProcessRequest() is being called on the base MvcHandler instead of ProcessRequest().<\/p>\n<p>Why are the async methods being called when I haven&#8217;t done anything to call them? I don&#8217;t want asynchronous handling, and I certainly didn&#8217;t do anything explicit to get it. My controllers all derive from Controller, not AsyncController.<\/p>\n<p>I don&#8217;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&#8217;s not wanted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s constructor is definitely being called, but BeginProcessRequest() is being called on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3606","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3606"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3606\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}