public async Task <AutocompleteResponse> ListPackageVersionsAsync( string packageId, bool includePrerelease = true, bool includeSemVer2 = true, CancellationToken cancellationToken = default) { var url = RawSearchClient.AddSearchQueryString( _autocompleteUrl, packageId, skip: null, take: null, includePrerelease, includeSemVer2, "id"); return(await _httpClient.GetFromJsonAsync <AutocompleteResponse>(url, cancellationToken)); }
public async Task <AutocompleteResponse> AutocompleteAsync( string query = null, int skip = 0, int take = 20, bool includePrerelease = true, bool includeSemVer2 = true, CancellationToken cancellationToken = default) { var url = RawSearchClient.AddSearchQueryString( _autocompleteUrl, query, skip, take, includePrerelease, includeSemVer2, "q"); return(await _httpClient.GetFromJsonAsync <AutocompleteResponse>(url, cancellationToken)); }