コード例 #1
0
 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);
         }
     });
 }
コード例 #2
0
 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);
         }
     });
 }