public static void UnregisterComponent(IDiagnosable diagnosable) { if (diagnosable == null) { throw new ArgumentNullException("diagnosable"); } string diagnosticComponentName = diagnosable.GetDiagnosticComponentName(); if (string.IsNullOrEmpty(diagnosticComponentName)) { throw new ArgumentNullException("diagnosable.GetDiagnosticComponentName()"); } lock (ProcessAccessManager.RpcServerLockObject) { ProcessAccessManager.diagnosableComponents.Remove(diagnosticComponentName); if (ProcessAccessManager.diagnosableComponents.Count == 0 && ProcessAccessManager.RpcServer != null) { RpcServerBase.StopServer(ProcessAccessRpcServer.RpcIntfHandle); ProcessAccessManager.RpcServer = null; } } IDiagnosableExtraData diagnosableExtraData = diagnosable as IDiagnosableExtraData; if (diagnosableExtraData != null) { diagnosableExtraData.OnStop(); } }
public static void Stop() { if (ExchangeCertificateServer.server != null) { RpcServerBase.StopServer(ExchangeCertificateRpcServer.RpcIntfHandle); ExchangeCertificateServer.server = null; } }
public static void Stop() { int num = Interlocked.CompareExchange(ref RpcServerWrapper.Registered, 0, 1); if (num == 1) { RpcServerBase.StopServer(JobQueueRpcServer.RpcIntfHandle); } }
public static void Stop() { int num = Interlocked.CompareExchange(ref RpcServerWrapper.Registered, 0, 1); if (num == 1) { RpcServerBase.StopServer(UnifiedPolicyNotificationRpcServer.RpcIntfHandle); } }
// Token: 0x06000023 RID: 35 RVA: 0x00002750 File Offset: 0x00000950 public void Stop() { ThrottlingService.StartStopBreadcrumbs.Drop("Stopping RPC Server", new object[0]); RpcServerBase.StopServer(ThrottlingRpcServer.RpcIntfHandle); ThrottlingService.StartStopBreadcrumbs.Drop("RPC Server stopped", new object[0]); this.userSubmissionTokens.Stop(); this.userSubmissionTokens = null; this.mailboxRuleSubmissionTokens.Stop(); this.mailboxRuleSubmissionTokens = null; }
// Token: 0x0600045B RID: 1115 RVA: 0x000170CC File Offset: 0x000152CC public static void Stop() { lock (AmRpcServer.m_locker) { AmTrace.Debug("Stopping Active Manager Rpc", new object[0]); if (AmRpcServer.m_rpcServer != null) { RpcServerBase.StopServer(AmRpcServerBase.RpcIntfHandle); AmRpcServer.m_rpcServer = null; AmRpcServer.m_fRpcServerStarted = false; } } }
// Token: 0x06000117 RID: 279 RVA: 0x00008600 File Offset: 0x00006800 protected override void OnStopInternal() { ExTraceGlobals.ServiceTracer.TraceDebug((long)this.GetHashCode(), "MsExchangeLogSearch service is stopping"); bool flag = false; if (Monitor.TryEnter(LogSearchService.logSearchService, TimeSpan.FromSeconds(10.0))) { try { this.localServer.Unload(); if (LogSearchService.configReloadTimer != null) { LogSearchService.configReloadTimer.Dispose(false); } if (this.sessionManager != null) { this.sessionManager.Stop(); } if (LogSearchRpcServer.RpcIntfHandle != IntPtr.Zero) { RpcServerBase.StopServer(LogSearchRpcServer.RpcIntfHandle); } if (this.messageTrackingLog != null) { this.messageTrackingLog.Stop(); } if (this.healthLog != null) { this.healthLog.Dispose(); this.healthLog = null; } EHALogSearchComponent.Stop(); LogSearchService.logger.LogEvent(MSExchangeTransportLogSearchEventLogConstants.Tuple_LogSearchServiceStopSuccess, null, new object[0]); ExTraceGlobals.ServiceTracer.TraceDebug((long)this.GetHashCode(), "MsExchangeLogSearch service stopped successfully"); this.localServer = null; flag = true; } finally { Monitor.Exit(LogSearchService.logSearchService); if (!flag) { LogSearchService.logger.LogEvent(MSExchangeTransportLogSearchEventLogConstants.Tuple_LogSearchServiceStopFailure, null, new object[0]); ExTraceGlobals.ServiceTracer.TraceError((long)this.GetHashCode(), "MsExchangeLogSearch services failure to stop"); } } } }
internal static void StopServer() { MailboxSearchServer.server.InternalShutdown(); RpcServerBase.StopServer(MailboxSearchRpcServer.RpcIntfHandle); MailboxSearchServer.server = null; }