public static void SendInMemoryTraceWatson(Exception exception) { AirSyncDiagnostics.DoWithExtraWatsonData(delegate { if (AirSyncDiagnostics.IsInMemoryTracingEnabled()) { AirSyncDiagnostics.TroubleshootingContext.TraceOperationCompletedAndUpdateContext(); AirSyncDiagnostics.TroubleshootingContext.SendTroubleshootingReportWithTraces(exception); return; } if (exception != TroubleshootingContext.FaultInjectionInvalidOperationException) { ExWatson.SendReport(exception, ReportOptions.DoNotCollectDumps, null); } }); }
public static void SendWatson(Exception exception, bool terminating) { AirSyncDiagnostics.DoWithExtraWatsonData(delegate { if (AirSyncDiagnostics.IsInMemoryTracingEnabled()) { AirSyncDiagnostics.TroubleshootingContext.TraceOperationCompletedAndUpdateContext(); AirSyncDiagnostics.TroubleshootingContext.SendExceptionReportWithTraces(exception, terminating); return; } if (exception != TroubleshootingContext.FaultInjectionInvalidOperationException) { ExWatson.SendReport(exception, terminating ? ReportOptions.ReportTerminateAfterSend : ReportOptions.None, null); } }); }