Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }