{"id":85,"date":"2016-03-19T10:33:41","date_gmt":"2016-03-19T09:33:41","guid":{"rendered":"https:\/\/solidt.eu\/blog\/?p=85"},"modified":"2016-03-19T10:33:41","modified_gmt":"2016-03-19T09:33:41","slug":"httptaskasynchandler","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/httptaskasynchandler\/","title":{"rendered":"HttpTaskAsyncHandler"},"content":{"rendered":"<p>Source: http:\/\/codewala.net\/2012\/04\/30\/asynchronous-httphandlers-with-asp-net-4-5\/<\/p>\n<pre lang=\"c#\">\r\n\ufeffusing System;\r\nusing System.Threading.Tasks;\r\nusing System.Web;\r\nusing System.Web.Mvc;\r\nusing System.Web.Routing;\r\n\r\nnamespace CustomAsyncHttpHandler\r\n{\r\n    public class CustomAsyncHttpHandler : HttpTaskAsyncHandler\r\n    {\r\n        public override async Task ProcessRequestAsync(HttpContext context)\r\n        { \r\n            \/\/await client.ProcessRequest();\r\n        }\r\n\r\n        public override bool IsReusable\r\n        {\r\n            get { return true; }\r\n        }\r\n\r\n        public override void ProcessRequest(HttpContext context)\r\n        {\r\n            throw new Exception(\"The ProcessRequest method has no implementation.\");\r\n        }\r\n\r\n    }\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/codewala.net\/2012\/04\/30\/asynchronous-httphandlers-with-asp-net-4-5\/ \ufeffusing System; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using System.Web.Routing; namespace CustomAsyncHttpHandler { public class CustomAsyncHttpHandler : HttpTaskAsyncHandler { public override async Task ProcessRequestAsync(HttpContext context) { \/\/await client.ProcessRequest(); } public override bool IsReusable { get { return true; } } public override void ProcessRequest(HttpContext context) { throw new Exception(&#8220;The ProcessRequest method has no [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-dotnet"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":1,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/85\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}