/// <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; } }
/// <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; } }
/// <summary> /// Starts the diagnostics run. /// </summary> /// <remarks></remarks> private void StartDiagnosticsRun() { ManageDiagnosticsAgentFactory .CreateManageDiagnosticsAgent() .StartDiagnosticsAsync(OnStartDiagnosticsCompleted); }