private static void BundleConfig_SettingCacheLoaded(object sender, SettingsCacheLoadedEventArgs e) { if (e.SettingValues.Contains("BundlingEnabled")) { BundleTable.EnableOptimizations = bool.Parse((e.SettingValues["BundlingEnabled"] as AppSetting).Value); } }
private static void AppSettings_SettingCacheLoaded(object sender, SettingsCacheLoadedEventArgs e) { if (e.SettingValues.Contains("DbQueryLogEnable")) { ASDbCommandInterceptor interceptor = ServiceLocator.Current.Resolve <ASDbCommandInterceptor>(); if (bool.Parse((e.SettingValues["DbQueryLogEnable"] as AppSetting).Value)) { DbInterception.Add(interceptor); } else { DbInterception.Remove(interceptor); } } }