// Token: 0x060002B8 RID: 696 RVA: 0x000124F4 File Offset: 0x000106F4
        private void Application_PostAuthenticate(object source, EventArgs e)
        {
            HttpApplication httpApplication = (HttpApplication)source;
            HttpContext     context         = httpApplication.Context;
            Uri             url             = context.Request.Url;

            if (!context.Request.IsAuthenticated && !ExternalAuthentication.GetCurrent().Enabled&& (Common.IsWsSecurityAddress(url) || Common.IsWsSecuritySymmetricKeyAddress(url) || Common.IsWsSecurityX509CertAddress(url)))
            {
                context.Response.Close();
                httpApplication.CompleteRequest();
                return;
            }
            uint processCpuSlowDownThreshold = CPUBasedSleeper.ProcessCpuSlowDownThreshold;

            if (!context.Request.IsAuthenticated)
            {
                processCpuSlowDownThreshold = AutodiscoverThrottlingModule.anonymousSlowdownCpuThreshold;
            }
            int   arg;
            float arg2;

            if (CPUBasedSleeper.SleepIfNecessary(processCpuSlowDownThreshold, out arg, out arg2))
            {
                ExTraceGlobals.FrameworkTracer.TraceDebug <int, float>((long)this.GetHashCode(), "[AutodiscoverThrottlingModule::Application_PostAuthenticate] Slept request for {0} msec due to current process CPU percent of {1}%", arg, arg2);
            }
        }
        private static bool SleepIfNecessary()
        {
            uint  value = (uint)PublishedFolder.PublishedFolderSlowdownCpuThreshold.Value;
            int   arg;
            float arg2;

            if (CPUBasedSleeper.SleepIfNecessary(value, out arg, out arg2))
            {
                ExTraceGlobals.SharingTracer.TraceDebug <int, float>(0L, "PublishedFolder.SleepIfNecessary(): SleepTime = {0}, CpuPercent = {1}", arg, arg2);
                return(true);
            }
            return(false);
        }