Ejemplo n.º 1
0
 PackageOperationResult PackageMissing(ResolvedPackage resolvedPackage)
 {
     return new PackageMissingResult(resolvedPackage);
 }
Ejemplo n.º 2
0
 PackageOperationResult PackageConflict(ResolvedPackage resolvedPackage)
 {
     return new PackageConflictResult(resolvedPackage);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 public PackageResolveError(ResolvedPackage result)
 {
     Package = result;
 }
Ejemplo n.º 5
0
 public PackageConflictResult(ResolvedPackage result)
     : base(result)
 {
 }
Ejemplo n.º 6
0
 public PackageMissingResult(ResolvedPackage result)
     : base(result)
 {
 }