Exemplo n.º 1
0
 /// <summary>
 /// Enumerate pull requests on the repository asynchronously, doing requests page by page.
 /// </summary>
 /// <param name="parameters">Parameters for the queries.</param>
 /// <param name="token">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
 public IAsyncEnumerable <PullRequest> EnumeratePullRequestsAsync(EnumeratePullRequestsParameters parameters, CancellationToken token = default)
 {
     if (parameters == null)
     {
         throw new ArgumentNullException(nameof(parameters));
     }
     return(_sharpBucketV2.EnumeratePaginatedValuesAsync <PullRequest>(_baseUrl, parameters.ToDictionary(), parameters.PageLen, token));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Enumerate pull requests on the repository.
 /// </summary>
 /// <param name="parameters">Parameters for the queries.</param>
 public IEnumerable <PullRequest> EnumeratePullRequests(EnumeratePullRequestsParameters parameters)
 {
     if (parameters == null)
     {
         throw new ArgumentNullException(nameof(parameters));
     }
     return(_sharpBucketV2.EnumeratePaginatedValues <PullRequest>(_baseUrl, parameters.ToDictionary(), parameters.PageLen));
 }