/// <inheritdoc /> public Task <IPackageSearchMetadata> GetAsync(string id, NuGetVersion version) { return(PackageUtils.Search(this.url, id, version)); }
/// <inheritdoc /> public Task <IEnumerable <IPackageSearchMetadata> > SearchAsync(string terms, bool includePreRelease) { return(PackageUtils.Search(this.url, terms).ContinueWith(t => (IEnumerable <IPackageSearchMetadata>)t.Result)); }
/// <inheritdoc /> public async Task <IPackageSearchMetadata> GetAsync(string id) { var packages = await PackageUtils.Search(this.url, id); return(packages.Where(p => p.Identity.Id == id).OrderByDescending(p => p.Identity.Version).FirstOrDefault()); }