static CacheManager() { _instance = CacheManager.Instance; _slidingTimeoutUserData = TimeSpan.FromMinutes(double.Parse(ConfigurationUtility.GetConfigurationSettingValue("SlidingTimeoutUserData"))); _slidingTimeoutCommonData = TimeSpan.FromMinutes(double.Parse(ConfigurationUtility.GetConfigurationSettingValue("SlidingTimeoutCommonData"))); _slidingTimeoutImportantCommonData = TimeSpan.FromMinutes(double.Parse(ConfigurationUtility.GetConfigurationSettingValue("SlidingTimeoutImportantCommonData"))); SlidingTimeoutQuickCachingData = TimeSpan.FromSeconds(double.Parse(ConfigurationUtility.GetConfigurationSettingValue("SlidingTimeoutQuickCachingData"))); SlidingTimeoutReportCachingData = TimeSpan.FromSeconds(double.Parse(ConfigurationUtility.GetConfigurationSettingValue("SlidingTimeoutReportCachingData"))); _logger = LogManager.GetLogger(typeof(CacheManager)); }
public static void RegisterAuth() { // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, and Twitter, // you must update this site. For more information visit http://go.microsoft.com/fwlink/?LinkID=252166 //OAuthWebSecurity.RegisterMicrosoftClient( // clientId: "", // clientSecret: ""); //OAuthWebSecurity.RegisterTwitterClient( // consumerKey: "", // consumerSecret: ""); //OAuthWebSecurity.RegisterFacebookClient( // appId: "972954086052159", // appSecret: "beb10063ed7b6de82b25c534c332249d"); OAuthWebSecurity.RegisterClient( new GooglePlusClient( ConfigurationUtility.GetConfigurationSettingValue("ClientID") , ConfigurationUtility.GetConfigurationSettingValue("ClientSecret") ) , "Google+", null); }