static LocalAppContext() { // Populate the default values of the local app context AppContextDefaultValues.PopulateDefaultValues(); // Cache the value of the switch that help with testing DisableCaching = IsSwitchEnabled(@"TestSwitch.LocalAppContext.DisableCaching"); }
static AppContext() { // Unloading event must happen before ProcessExit event AppDomain.CurrentDomain.ProcessExit += OnUnloading; AppDomain.CurrentDomain.ProcessExit += OnProcessExit; // populate the AppContext with the default set of values AppContextDefaultValues.PopulateDefaultValues(); }
static LocalAppContext() { // Try to setup the callback into the central AppContext s_canForwardCalls = SetupDelegate(); // Populate the default values of the local app context AppContextDefaultValues.PopulateDefaultValues(); // Cache the value of the switch that help with testing DisableCaching = IsSwitchEnabled(@"TestSwitch.LocalAppContext.DisableCaching"); }
// Token: 0x06000204 RID: 516 RVA: 0x000052B4 File Offset: 0x000034B4 private static void InitializeDefaultSwitchValues() { Dictionary <string, AppContext.SwitchValueState> obj = AppContext.s_switchMap; lock (obj) { if (!AppContext.s_defaultsInitialized) { AppContextDefaultValues.PopulateDefaultValues(); AppContext.s_defaultsInitialized = true; } } }
private static void InitializeDefaultSwitchValues() { // To save a method call into this method, we are first checking // the value of s_defaultsInitialized in the caller. lock (s_switchMap) { if (s_defaultsInitialized == false) { // populate the AppContext with the default set of values AppContextDefaultValues.PopulateDefaultValues(); s_defaultsInitialized = true; } } }
static AppContext() { // populate the AppContext with the default set of values AppContextDefaultValues.PopulateDefaultValues(); }
static AppContext() { AppContextDefaultValues.PopulateDefaultValues(); }
// Token: 0x0600025C RID: 604 RVA: 0x0000611D File Offset: 0x0000431D static LocalAppContext() { LocalAppContext.s_canForwardCalls = LocalAppContext.SetupDelegate(); AppContextDefaultValues.PopulateDefaultValues(); LocalAppContext.DisableCaching = LocalAppContext.IsSwitchEnabled("TestSwitch.LocalAppContext.DisableCaching"); }