private static void CreateAppConfig() { ConfigContext config = new CacheConfigContext(); var appConfig = config.Get <AppConfig>("622CF655-1559-4328-B493-EAC7AA833F2E"); if (appConfig == null) { appConfig = new AppConfig { AppId = _appId, AppSecret = _appSecret.ToString(), SharedKey = "275CD14E-6B51-444b-BC1B-88776160F81E", SignatureExpiredMinutes = 10, TokenExpiredDay = 7 }; config.Save(appConfig, "622CF655-1559-4328-B493-EAC7AA833F2E"); } }
protected void Application_Start(object sender, EventArgs e) { CacheConfigContext.SetCacheConfig(CachedConfigContext.Current.CacheConfig); }