PackageOperationResult PackageMissing(ResolvedPackage resolvedPackage)
 {
     return new PackageMissingResult(resolvedPackage);
 }
 PackageOperationResult PackageConflict(ResolvedPackage resolvedPackage)
 {
     return new PackageConflictResult(resolvedPackage);
 }
 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;
 }
 public PackageResolveError(ResolvedPackage result)
 {
     Package = result;
 }
 public PackageConflictResult(ResolvedPackage result)
     : base(result)
 {
 }
 public PackageMissingResult(ResolvedPackage result)
     : base(result)
 {
 }