コード例 #1
0
        public async Task <PackageLookupResult> FindVersionUpdate(
            PackageIdentity package, VersionChange allowedChange)
        {
            var foundVersions = await _packageVersionsLookup.Lookup(package.Id);

            return(VersionChanges.MakeVersions(package.Version, foundVersions, allowedChange));
        }
コード例 #2
0
        public async Task <PackageLookupResult> FindVersionUpdate(
            PackageIdentity package,
            NuGetSources sources,
            VersionChange allowedChange)
        {
            var allowBetas    = package.Version.IsPrerelease;
            var foundVersions = await _packageVersionsLookup.Lookup(package.Id, allowBetas, sources);

            return(VersionChanges.MakeVersions(package.Version, foundVersions, allowedChange));
        }
コード例 #3
0
        public async Task <PackageLookupResult> FindVersionUpdate(
            PackageIdentity package,
            NuGetSources sources,
            VersionChange allowedChange,
            UsePrerelease usePrerelease)
        {
            var includePrerelease = ShouldAllowPrerelease(package, usePrerelease);

            var foundVersions = await _packageVersionsLookup.Lookup(package.Id, includePrerelease, sources);

            return(VersionChanges.MakeVersions(package.Version, foundVersions, allowedChange));
        }