一个IHttpModule的实施,我创建我应该如何在管道中引用IHttpModule实例?
public class ResponseTweaker : IHttpModule { // my module ...
登记在Web.config中
<system.web>
<httpModules>
<add name="redman" type="ResponseTweaker"/>
</httpModules>
和它的一个实例是坐在流水线。
从调用者的角度(例如Global.asax.cs文件),如何应该我得到该模块实例的引用?
https://github.com/castleprojectcontrib/Castle.Windsor.Lifestyles/blob/master/Castle.Windsor.Lifestyles/PerHttpApplicationLifestyleManager.cs#L37 – 2010-11-07 01:09:27