protected override void OnUnhandledException(Exception exception) { if (TraceCore.UnhandledExceptionIsEnabled(this)) { TraceCore.UnhandledException(this, exception != null ? exception.ToString() : string.Empty, exception); } }
private void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args) { Exception exceptionObject = (Exception)args.ExceptionObject; TraceCore.UnhandledException(this, exceptionObject); this.ShutdownTracing(); }
protected override void OnUnhandledException(Exception exception) { string str; EtwDiagnosticTrace etwDiagnosticTrace = this; if (exception != null) { str = exception.ToString(); } else { str = string.Empty; } TraceCore.UnhandledException(etwDiagnosticTrace, str, exception); }