private static void LoadConfiguration()
        {
            SettingsSection settings = SettingsSection.GetSection();

            if (settings != null)
            {
                SecretKey = settings.SecretKey;
                _defaultQuerystringPrefix = settings.QueryStringPrefix;
            }
        }
Exemple #2
0
        private static void LoadConfiguration()
        {
            ValidateResultRepositoryBase.LoadBaseConfiguration();

            SettingsSection settings = SettingsSection.GetSection();

            if (settings != null && settings.RepositorySettings != null)
            {
                CookieDomain = GetValue("CookieDomain", settings.RepositorySettings);

                SetTimespanFromRepositorySettings(
                    settings.RepositorySettings, "CookieExpiration", (value) => CookieExpiration = value);
            }
        }
Exemple #3
0
        protected static void LoadBaseConfiguration()
        {
            SettingsSection settings = SettingsSection.GetSection();

            if (settings != null && settings.RepositorySettings != null)
            {
                SetTimespanFromRepositorySettings(
                    settings.RepositorySettings, "IdleExpiration", (value) => IdleExpiration = value);
            }
            if (settings != null && settings.RepositorySettings != null)
            {
                SetBooleanFromRepositorySettings(
                    settings.RepositorySettings, "ExtendValidity", (value) => ExtendValidity = value);
            }
        }
 static QueueFactory()
 {
     _settings = SettingsSection.GetSection();
 }