コード例 #1
0
 PackageOperationResult PackageMissing(ResolvedPackage resolvedPackage)
 {
     return new PackageMissingResult(resolvedPackage);
 }
コード例 #2
0
 PackageOperationResult PackageConflict(ResolvedPackage resolvedPackage)
 {
     return new PackageConflictResult(resolvedPackage);
 }
コード例 #3
0
 IPackageInfo GetExistingPackage(ISupportPublishing destinationRepository, ResolvedPackage foundPackage, Func<Version, bool> versionSelector)
 {
     return destinationRepository.PackagesByName.Contains(foundPackage.Identifier.Name)
                    ? destinationRepository.PackagesByName[foundPackage.Identifier.Name]
                              .Where(x => foundPackage.Identifier.Version != null && versionSelector(x.Version))
                              .OrderByDescending(x => x.Version)
                              .FirstOrDefault()
                    : null;
 }
コード例 #4
0
 public PackageResolveError(ResolvedPackage result)
 {
     Package = result;
 }
コード例 #5
0
 public PackageConflictResult(ResolvedPackage result)
     : base(result)
 {
 }
コード例 #6
0
 public PackageMissingResult(ResolvedPackage result)
     : base(result)
 {
 }