Exemplo n.º 1
0
        public async Task <IList <Dictionary <string, object> > > GetIssuesAsync(string ownerName, string repositoryName, GitHubIssueFilter filter, CancellationToken cancellationToken)
        {
            var issues = await this.InvokePagesAsync("GET", $"{this.apiBaseUrl}/repos/{Esc(ownerName)}/{Esc(repositoryName)}/issues{filter.ToQueryString()}", cancellationToken).ConfigureAwait(false);

            return(issues.Cast <Dictionary <string, object> >().ToList());
        }
Exemplo n.º 2
0
        public async Task <IList <Dictionary <string, object> > > GetIssuesAsync(string ownerName, string repositoryName, GitHubIssueFilter filter)
        {
            var issues = (IEnumerable <object>) await this.InvokeAsync("GET", string.Format("{0}/repos/{1}/{2}/issues{3}", this.apiBaseUrl, ownerName, repositoryName, filter.ToQueryString())).ConfigureAwait(false);

            return(issues.Cast <Dictionary <string, object> >().ToList());
        }