Пример #1
0
        public Task <JObject> GetPackageIndex(string packageId) =>
        recorder.RecordTransientMetadata($"nuget/v3/{name}/{packageId}/index.json", async() => {
            var packageBaseAddress = await NuGetPackageBaseAddress();

            var url = packageBaseAddress + (packageBaseAddress.EndsWith("/") ? "" : "/") + packageId + "/index.json";
            return(await HttpUtil.FetchJson <JObject>(url));
        });