예제 #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)
 {
 }