/// In the Init method register for HttpApplication events by adding your handlers public void Init(System.Web.HttpApplication application) { application.BeginRequest += new EventHandler(this.Application_BeginRequest); //application.Error += new EventHandler(this.Application_Error); cs = RewriteConfigSettings.GetSettings(); rqcs = RequestConfigSettings.GetSettings(); }
/// <summary> /// Get the current settings from the xml config file /// </summary> public static RequestConfigSettings GetSettings() { RequestConfigSettings settings = (RequestConfigSettings)System.Configuration.ConfigurationSettings.GetConfig("SiteFoundry/requestSecurity"); if (settings == null) { return(RequestConfigSettings.Default); } else { return(settings); } }