/// <summary> /// Initializes the module and prepares it to handle requests. /// </summary> public virtual void Init(HttpApplication application) { if (application == null) { throw new ArgumentNullException("application"); } ErrorFilterConfiguration config = (ErrorFilterConfiguration)Configuration.GetSubsection("errorFilter"); if (config == null) { return; } _assertion = config.Assertion; foreach (IHttpModule module in HttpModuleRegistry.GetModules(application)) { IExceptionFiltering filtering = module as IExceptionFiltering; if (filtering != null) { filtering.Filtering += new ExceptionFilterEventHandler(OnErrorModuleFiltering); } } }
public void HookFiltering(IExceptionFiltering module) { module.Filtering += base.OnErrorModuleFiltering; }
public void HookFiltering(IExceptionFiltering module) { module.Filtering += new ExceptionFilterEventHandler(base.OnErrorModuleFiltering); }
public void HookFiltering(IExceptionFiltering module) { module.Filtering += new ExceptionFilterEventHandler(base.OnErrorModuleFiltering); }
public void HookFiltering(IExceptionFiltering module) { module.Filtering += base.OnErrorModuleFiltering; }