protected override void OnUnhandledException(Exception exception)
 {
     if (TraceCore.UnhandledExceptionIsEnabled(this))
     {
         TraceCore.UnhandledException(this, exception != null ? exception.ToString() : string.Empty, exception);
     }
 }
Example #2
0
        private void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args)
        {
            Exception exceptionObject = (Exception)args.ExceptionObject;

            TraceCore.UnhandledException(this, exceptionObject);
            this.ShutdownTracing();
        }
Example #3
0
        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);
        }