摘要: 关于具体的Http Request 在ASP.NET里处理流程,在博客园里张子阳的博客里已经讲的很清楚了,我这篇文章是基于他的文章的基础上的一个扩展。下图为我两种访问方式,左边为传统的asp.net form page的访问方式,有图为asp.net mvc的访问方式,最后处理的时候都是由Ihttphandler的handler处理的。在Asp.net page中,任何一个页面都已经实现了Ihttphandler,因为Page本身就继承了IhttpHandler,在Mvc里,我们以来与MvcRouteHanlder,来返回MvcHandler,最后在MvcHandler里的ProcessReq 阅读全文
posted @ 2013-06-01 16:58 chunchill 阅读(219) 评论(0) 推荐(0) 编辑
摘要: The only weird part here is getting a handle to the logger. I’m using an IoC container in my application, however I can’t tell IIS how to build up my RequestDurationLoggerModule, so I’m stuck using the Service Locator pattern. The container could be a singleton, but I don’t like singletons, so I imp 阅读全文
posted @ 2013-06-01 15:47 chunchill 阅读(803) 评论(0) 推荐(0) 编辑