/// <summary> /// Enumerate repositories associated with the account. If the caller is properly authenticated and authorized, /// this method returns a collection containing public and private repositories. /// Otherwise, this method returns a collection of the public repositories. /// </summary> /// <param name="parameters">Parameters for the queries.</param> public IEnumerable <Repository> EnumerateRepositories(EnumerateRepositoriesParameters parameters) { _ = parameters ?? throw new ArgumentNullException(nameof(parameters)); return(_sharpBucketV2.EnumeratePaginatedValues <Repository>( _baseUrl, parameters.ToDictionary(), parameters.PageLen)); }
/// <summary> /// Enumerate repositories associated with the account, doing requests page by page. /// If the caller is properly authenticated and authorized, /// this method returns a collection containing public and private repositories. /// Otherwise, this method returns a collection of the public repositories. /// </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 <Repository> EnumerateRepositoriesAsync( EnumerateRepositoriesParameters parameters, CancellationToken token = default) { _ = parameters ?? throw new ArgumentNullException(nameof(parameters)); return(_sharpBucketV2.EnumeratePaginatedValuesAsync <Repository>( _baseUrl, parameters.ToDictionary(), parameters.PageLen, token)); }