public async Task <IList <Job> > GetJobsAsync(ProjectId projectId, int enviromnentId, Action <EnvironmentQueryOptions> options = null) { var queryOptions = new EnvironmentQueryOptions(); options?.Invoke(queryOptions); string url = _queryBuilder.Build($"projects/{projectId}/pipelines/{enviromnentId}/jobs", queryOptions); return(await _httpFacade.GetPagedList <Job>(url)); }
public async Task <IList <Models.Environments.Responses.Environment> > GetAsync(ProjectId projectId, Action <EnvironmentQueryOptions> options = null) { var queryOptions = new EnvironmentQueryOptions(); options?.Invoke(queryOptions); string url = _queryBuilder.Build($"projects/{projectId}/environments", queryOptions); return(await _httpFacade.GetPagedList <Models.Environments.Responses.Environment>(url)); }