Пример #1
0
 /// <summary>
 /// Gets the diagnostics batches.
 /// </summary>
 /// <remarks></remarks>
 private void GetDiagnosticsBatches()
 {
     try
     {
         IsBusy  = true;
         IsEmpty = false;
         ManageDiagnosticsAgentFactory
         .CreateManageDiagnosticsAgent()
         .GetDiagnosticsReportsByDateAsync(BatchDate, OnGetDiagnosticsBatchesCompleted);
     }
     catch (Exception ex)
     {
         IsBusy  = false;
         IsEmpty = true;
     }
 }
Пример #2
0
 /// <summary>
 /// Gets the diagnostics report.
 /// </summary>
 /// <remarks></remarks>
 private void GetDiagnosticsReport()
 {
     try
     {
         swRequest.Start();
         tmr.Stop();
         IsBusy = true;
         if (FocusedBatch != null)
         {
             ManageDiagnosticsAgentFactory
             .CreateManageDiagnosticsAgent()
             .GetDiagnosticsReportAsync(FocusedBatch.Id, OnGetDiagnosticsReportCompleted);
         }
     }
     catch
     {
         IsBusy  = false;
         IsEmpty = true;
     }
 }
Пример #3
0
 /// <summary>
 /// Starts the diagnostics run.
 /// </summary>
 /// <remarks></remarks>
 private void StartDiagnosticsRun()
 {
     ManageDiagnosticsAgentFactory
     .CreateManageDiagnosticsAgent()
     .StartDiagnosticsAsync(OnStartDiagnosticsCompleted);
 }