private static void LoadConfiguration() { SettingsSection settings = SettingsSection.GetSection(); if (settings != null) { SecretKey = settings.SecretKey; _defaultQuerystringPrefix = settings.QueryStringPrefix; } }
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); } }
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(); }