/// <summary> /// Enumerate all the teams that the authenticated user is associated with. /// </summary> /// <param name="parameters">Parameters for the query.</param> public IAsyncEnumerable <Team> EnumerateUserTeamsAsync( EnumerateTeamsParameters parameters, CancellationToken token = default) { _ = parameters ?? throw new ArgumentNullException(nameof(parameters)); return(_sharpBucketV2.EnumeratePaginatedValuesAsync <Team>( _baseUrl, parameters.ToDictionary(), parameters.PageLen, token)); }
/// <summary> /// Enumerate all the teams that the authenticated user is associated with. /// </summary> /// <param name="parameters">Parameters for the query.</param> public IEnumerable <Team> EnumerateUserTeams(EnumerateTeamsParameters parameters) { _ = parameters ?? throw new ArgumentNullException(nameof(parameters)); return(_sharpBucketV2.EnumeratePaginatedValues <Team>( _baseUrl, parameters.ToDictionary(), parameters.PageLen)); }