コード例 #1
0
        private static NuGetPackageMetadataDto GetNuGetPackageMetadata(NuGetIndexDto nuGetIndex)
        {
            var packageMetadataService = nuGetIndex.Resources.First(r => r.Type == NuGetResources.PackageMetadata);

            return(LoadDto <NuGetPackageMetadataDto>($"{packageMetadataService.Id.Trim('/')}/{PackageId.ToLower()}/index.json"));
        }
コード例 #2
0
        private static NuGetPackageSummaryDto GetNuGetPackageSummary(NuGetIndexDto nuGetIndex)
        {
            var searchQueryService = nuGetIndex.Resources.First(r => r.Type == NuGetResources.SearchQuery);

            return(LoadDto <NuGetPackageSummaryDto>(searchQueryService.Id, ("q", $"PackageId:{PackageId}")));
        }