// Token: 0x06000261 RID: 609 RVA: 0x00006274 File Offset: 0x00004474
        private static bool GetCachedSwitchValueInternal(string switchName, ref int switchValue)
        {
            if (LocalAppContext.DisableCaching)
            {
                return(LocalAppContext.IsSwitchEnabled(switchName));
            }
            bool flag = LocalAppContext.IsSwitchEnabled(switchName);

            switchValue = (flag ? 1 : -1);
            return(flag);
        }
Esempio n. 2
0
        private static bool GetCachedSwitchValueInternal(string switchName, ref int switchValue)
        {
            if (LocalAppContext.DisableCaching)
            {
                return(LocalAppContext.IsSwitchEnabled(switchName));
            }

            bool isEnabled = LocalAppContext.IsSwitchEnabled(switchName);

            switchValue = isEnabled ? 1 /*true*/ : -1 /*false*/;
            return(isEnabled);
        }
 // 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");
 }