public static void StopScheduling() { List <JobScheduler> list = new List <JobScheduler>(MailboxSyncerJobs.schedulers.Count); lock (MailboxSyncerJobs.syncRoot) { foreach (JobScheduler item in MailboxSyncerJobs.schedulers.Values) { list.Add(item); } MailboxSyncerJobs.schedulers.Clear(); } if (list.Count > 0) { foreach (JobScheduler jobScheduler in list) { jobScheduler.Stop(); } } if (SystemWorkloadManager.Status != WorkloadExecutionStatus.NotInitialized) { SystemWorkloadManager.Shutdown(); MrsAndProxyActivityLogger.Stop(); } }
// Token: 0x06000187 RID: 391 RVA: 0x000075C4 File Offset: 0x000057C4 public void Dispose() { if (SystemWorkloadManager.Status != WorkloadExecutionStatus.NotInitialized) { SystemWorkloadManager.Shutdown(); } if (this.exRpcAdmin != null) { this.exRpcAdmin.Dispose(); this.exRpcAdmin = null; } if (this.databaseStatusTimer != null) { this.databaseStatusTimer.Dispose(); this.databaseStatusTimer = null; } if (this.storeService != null) { this.storeService.Dispose(); this.storeService = null; } this.eventGovernor.Dispose(); }