private void SetRunId(RunResponse runResponse) { string runId = runResponse.RunId; if (runId.IsNullOrWhiteSpace()) { _logger.LogError(C.NO_RUN_ID); throw new AlmException(C.NO_RUN_ID, ErrorCategory.InvalidResult); } else { _runHandler.SetRunId(runId); _pollHandler.SetRunId(runId); } }
private async Task<bool> Start() { bool ok = false; Response res = await _runHandler.Start( _args.Duration, _args.EnvironmentConfigurationId); if (IsOK(res)) { RunResponse runResponse = _runHandler.GetRunResponse(res); SetRunId(runResponse); ok = runResponse.HasSucceeded; } //_logger.Info($"{res.Data}"); await LogReportUrl(ok); return ok; }