コード例 #1
0
        // Token: 0x060002B7 RID: 695 RVA: 0x000124A0 File Offset: 0x000106A0
        private static void InitializeCPUSlowdown()
        {
            int appSettingAsInt = AutodiscoverThrottlingModule.GetAppSettingAsInt("WSSecuritySlowdownCpuThreshold", 25);

            AutodiscoverThrottlingModule.anonymousSlowdownCpuThreshold = (uint)(((long)appSettingAsInt <= 10L) ? 25 : appSettingAsInt);
            if (AutodiscoverThrottlingModule.anonymousSlowdownCpuThreshold > CPUBasedSleeper.ProcessCpuSlowDownThreshold)
            {
                ExTraceGlobals.FrameworkTracer.TraceDebug(0L, "[AutodiscoverThrottlingModule::InitializeCPUSlowdown] The Sharing CPU threshold is higher than the default threshold");
                AutodiscoverThrottlingModule.anonymousSlowdownCpuThreshold = CPUBasedSleeper.ProcessCpuSlowDownThreshold;
            }
        }
コード例 #2
0
 // Token: 0x060002B6 RID: 694 RVA: 0x00012486 File Offset: 0x00010686
 public void Init(HttpApplication context)
 {
     context.PostAuthenticateRequest += this.Application_PostAuthenticate;
     AutodiscoverThrottlingModule.InitializeCPUSlowdown();
 }