private IPackageSearchMetadata CreatePackageSearchResult(
            V2FeedPackageInfo package,
            SearchFilter filter,
            Common.ILogger log,
            CancellationToken cancellationToken)
        {
            var metadata = new PackageSearchMetadataV2Feed(package);

            return(metadata
                   .WithVersions(() => GetVersions(package, filter, log, cancellationToken)));
        }
Exemple #2
0
        public static IPackageSearchMetadata CreatePackageSearchResult(
            V2FeedPackageInfo package,
            MetadataReferenceCache metadataCache,
            SearchFilter filter,
            V2FeedParser feedParser,
            Common.ILogger log,
            CancellationToken cancellationToken)
        {
            var metadata = new PackageSearchMetadataV2Feed(package, metadataCache);

            return(metadata
                   .WithVersions(() => GetVersions(package, metadataCache, filter, feedParser, log, cancellationToken)));
        }