Пример #1
0
 public DependencyResolutionResult(IPackageDescriptor descriptor, IEnumerable <ResolvedPackage> successfulPackages, IEnumerable <ResolvedPackage> conflictingPackages, IEnumerable <ResolvedPackage> missingPackages)
 {
     Descriptor         = descriptor;
     SuccessfulPackages = successfulPackages.ToList().AsReadOnly();
     DiscardedPackages  = conflictingPackages.ToList().AsReadOnly();
     MissingPackages    = missingPackages.ToList().AsReadOnly();
     //IsSuccess = !(MissingPackages.Any() || DiscardedPackages.Any());
     IsSuccess = !(MissingPackages.Any(x => SuccessfulPackages.None(s => s.Identifier.Name.EqualsNoCase(x.Identifier.Name))) ||
                   DiscardedPackages.Any(x => SuccessfulPackages.None(s => s.Identifier.Name.EqualsNoCase(x.Identifier.Name))));
 }