Exemplo n.º 1
0
        static void LoadWebConfiguration(WebLogifyConfigSection section, LogifyAlertConfiguration config)
        {
            if (section == null)
            {
                return;
            }

            if (section.IgnoreFormFields != null)
            {
                config.IgnoreFormFields = section.IgnoreFormFields.Value;
            }
            if (section.IgnoreHeaders != null)
            {
                config.IgnoreHeaders = section.IgnoreHeaders.Value;
            }
            if (section.IgnoreCookies != null)
            {
                config.IgnoreCookies = section.IgnoreCookies.Value;
            }
            if (section.IgnoreServerVariables != null)
            {
                config.IgnoreServerVariables = section.IgnoreServerVariables.Value;
            }
            if (section.IgnoreRequestBody != null)
            {
                config.IgnoreRequestBody = section.IgnoreRequestBody.ValueAsBool;
            }
        }
Exemplo n.º 2
0
        protected override LogifyAlertConfiguration LoadConfiguration()
        {
            WebLogifyConfigSection   section       = ConfigurationManager.GetSection("logifyAlert") as WebLogifyConfigSection;
            LogifyAlertConfiguration configuration = ClientConfigurationLoader.LoadCommonConfiguration(section);

            LoadWebConfiguration(section, configuration);
            return(configuration);
        }
Exemplo n.º 3
0
        string TryGetVersionFromConfig()
        {
            string version = String.Empty;

            WebLogifyConfigSection configSection = (WebLogifyConfigSection)WebConfigurationManager.GetSection("logifyAlert");

            if (configSection.Version != null)
            {
                version = configSection.Version.Value;
            }

            return(version);
        }