async void GetBenchmarkResults(int tryCount = 0) { bool success = false; try { ViewModel.BenchmarkResults = await PerformanceDataManager.GetScenarioResults(_DeviceIdentifier); success = true; } catch (Exception exc) { if (tryCount < 3) { GetBenchmarkResults(++tryCount); } else { nextButton.Text = exc.ToString(); } } if (success) { nextButton.IsEnabled = true; nextButton.Text = Next; } }
void HandleRenderComplete(PerformanceTracker obj) { var result = DisplayResults(); #pragma warning disable 4014 PerformanceDataManager.PostScenarioResults(ViewModel.Scenario, result, ViewModel.TestRunReferenceId, _DeviceIdentifier, _DevicePlatform, _DeviceVersionNumber, _DeviceIdiom, _BuildInfo, ViewModel.ActualRenderTime, _PerformanceProvider.Statistics); #pragma warning restore 4014 }