public async void RequeueResults(BenchmarkResultViewModel[] items) { string[] benchmarkNames = items.Select(e => e.Filename).Distinct().ToArray(); RequeueSettingsViewModel requeueSettingsVm = new RequeueSettingsViewModel(benchmarkContainerUri, managerVm, recentValues, uiService); requeueSettingsVm = uiService.ShowRequeueSettings(requeueSettingsVm); if (requeueSettingsVm != null) { var handle = uiService.StartIndicateLongOperation("Requeue experiment results..."); try { manager.BatchPoolID = requeueSettingsVm.Pool; await manager.RestartBenchmarks(id, benchmarkNames, requeueSettingsVm.BenchmarkContainerUri); RefreshJobStatus(); experimentsVm.Refresh(); uiService.ShowInfo(string.Format("{0} benchmark(s) requeued.", benchmarkNames.Length)); } catch (Exception ex) { uiService.ShowError(ex.Message, "Failed to requeue experiment results"); } finally { uiService.StopIndicateLongOperation(handle); } } }