private void ShutdownTraceSource() { try { if (TraceCore.AppDomainUnloadIsEnabled(this)) { TraceCore.AppDomainUnload(this, AppDomain.CurrentDomain.FriendlyName, ProcessName, ProcessId.ToString(CultureInfo.CurrentCulture)); } this.TraceSource.Flush(); } catch (Exception exception) { if (Fx.IsFatal(exception)) { throw; } this.LogTraceFailure(null, exception); } }
private void ShutdownTraceSource() { try { if (TraceCore.AppDomainUnloadIsEnabled(this)) { int processId = DiagnosticTraceBase.ProcessId; TraceCore.AppDomainUnload(this, AppDomain.CurrentDomain.FriendlyName, DiagnosticTraceBase.ProcessName, processId.ToString(CultureInfo.CurrentCulture)); } base.TraceSource.Flush(); } catch (Exception exception1) { Exception exception = exception1; if (!Fx.IsFatal(exception)) { base.LogTraceFailure(null, exception); } else { throw; } } }