// Token: 0x0600115D RID: 4445 RVA: 0x00042A40 File Offset: 0x00040C40 private static void InitializeApplicationCaches() { HttpContext httpContext = HttpContext.Current; HttpApplication applicationInstance = httpContext.ApplicationInstance; ADIdentityInformationCache.Initialize(4000); applicationInstance.Application["WS_APPWideMailboxCacheKey"] = new AppWideStoreSessionCache(); applicationInstance.Application["WS_AcceptedDomainCacheKey"] = new AcceptedDomainCache(); int maxThreadCount = 10 * Environment.ProcessorCount; Global.BudgetType = BudgetType.Owa; Global.BulkOperationBudgetType = BudgetType.OwaBulkOperation; Global.NonInteractiveOperationBudgetType = BudgetType.OwaNonInteractiveOperation; Global.NonInteractiveThrottlingEnabled = true; Global.NonInteractiveOperationMethods = OwaApplication.owaNonInteractiveMethodNames; UserWorkloadManager.Initialize(maxThreadCount, 500, 500, TimeSpan.FromMinutes(5.0), null); applicationInstance.Application["WS_WorkloadManagerKey"] = UserWorkloadManager.Singleton; OwaEventRegistry owaEventRegistry = new OwaEventRegistry(); owaEventRegistry.RegisterHandler(typeof(PendingRequestEventHandler)); applicationInstance.Application["OwaEventRegistry"] = owaEventRegistry; string identification = ConfigurationManager.AppSettings["ProvisioningCacheIdentification"]; ProvisioningCache.InitializeAppRegistrySettings(identification); }
// Token: 0x060000B0 RID: 176 RVA: 0x000053C8 File Offset: 0x000035C8 static ResourceBasedTaskScheduler() { int maxThreadCount; int num; ThreadPool.GetMaxThreads(out maxThreadCount, out num); UserWorkloadManager.Initialize(maxThreadCount, TaskDistributionSettings.MaxQueuePerBlock, TaskDistributionSettings.MaxQueuePerBlock, TimeSpan.FromHours(4.0), null); }