/// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns><see cref="IReadOnlyList{T}"/> of the The API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task <IReadOnlyList <T> > GetAll <T>(Uri uri, IDictionary <string, string> parameters, string accepts) { Ensure.ArgumentNotNull(uri, "uri"); return(_pagination.GetAllPages(async() => await GetPage <T>(uri, parameters, accepts) .ConfigureAwait(false), uri)); }
public Task <IReadOnlyList <T> > GetAll <T>(Uri uri, IDictionary <string, string> parameters, string accepts) where T : class { uri.ArgumentNotNull(nameof(uri)); return(pagination.GetAllPages(async() => await GetPage <T>(uri, parameters, accepts).ConfigureAwait(false), uri)); }