public void Unload() { lock (this.syncObject) { ProcessAccessManager.UnregisterComponent(this); } MExEvents.Shutdown(); StoreDriverSubmission.ShutdownPerformanceCounterMaintenance(); }
public void Load() { try { MExEvents.Initialize(Path.Combine(ConfigurationContext.Setup.InstallPath, "TransportRoles\\Shared\\agents.config"), ProcessTransportRole.MailboxDelivery, LatencyAgentGroup.StoreDriver, "Microsoft.Exchange.Data.Transport.StoreDriverDelivery.StoreDriverDeliveryAgent"); ResourceHealthMonitorManager.Initialize(ResourceHealthComponent.Transport); StoreDriverDeliveryDiagnostics.Initialize(); StoreDriverDelivery.InitializePerformanceCounterMaintenance(); } catch (ExchangeConfigurationException ex) { StoreDriverDeliveryDiagnostics.Diag.TraceError((long)this.GetHashCode(), "StoreDriver.Load threw ExchangeConfigurationException: shutting down service."); StoreDriverDelivery.eventLogger.LogEvent(TransportEventLogConstants.Tuple_CannotStartAgents, null, new object[] { ex.LocalizedString, ex }); this.Stop(); } }
public void Load() { lock (this.syncObject) { ProcessAccessManager.RegisterComponent(this); } try { MExEvents.Initialize(Path.Combine(ConfigurationContext.Setup.InstallPath, "TransportRoles\\Shared\\agents.config"), ProcessTransportRole.MailboxSubmission, LatencyAgentGroup.MailboxTransportSubmissionStoreDriverSubmission, "Microsoft.Exchange.Data.Transport.StoreDriver.StoreDriverAgent"); StoreDriverSubmission.InitializePerformanceCounterMaintenance(); } catch (ExchangeConfigurationException ex) { this.storeDriverTracer.StoreDriverSubmissionTracer.TraceFail(this.storeDriverTracer.MessageProbeActivityId, (long)this.GetHashCode(), "StoreDriversubmission.Load threw ExchangeConfigurationException: shutting down service."); StoreDriverSubmission.LogEvent(MSExchangeStoreDriverSubmissionEventLogConstants.Tuple_CannotStartAgents, null, new object[] { ex.LocalizedString, ex }); this.Stop(); } }
public void Unload() { MExEvents.Shutdown(); StoreDriverDelivery.ShutdownPerformanceCounterMaintenance(); }