Exemplo n.º 1
0
 protected override void InternalDispose(bool disposing)
 {
     if (disposing)
     {
         if (this.RegisteredDiagnosable != null)
         {
             ProcessAccessManager.UnregisterComponent(this.RegisteredDiagnosable);
         }
         this.RegisteredDiagnosable = null;
     }
 }
Exemplo n.º 2
0
 internal static void UnRegisterDiagnosticsComponents(IDiagnosable component)
 {
     if (component != null)
     {
         try
         {
             ProcessAccessManager.UnregisterComponent(component);
         }
         catch (RpcException ex)
         {
             ExTraceGlobals.CommonTracer.TraceError <string>(0L, "ExchangeDiagnosticsHelper::UnRegisterDiagnosticsComponents. Exception:{0}", ex.ToString());
         }
     }
 }