示例#1
0
 public bool Equals(PackageId obj)
 {
     return (this.Id.Equals(obj.Id, StringComparison.OrdinalIgnoreCase) && this.VersionString.Equals(obj.VersionString, StringComparison.OrdinalIgnoreCase));
 }
示例#2
0
 public AuditResult(PackageId packageId, Artifact artifact, Project project, IList<Vulnerability> vulnerabilities)
     : this(packageId)
 {
     this._artifact = artifact;
     this._project = project;
     this._vulnerabilities = vulnerabilities;
 }
示例#3
0
        private AuditResult(PackageId packageId)
        {
            if (packageId == null)
            {
                throw new ArgumentNullException("packageId");
            }

            this._packageId = packageId;
        }
示例#4
0
        private bool AuditPackageInternal(IVsPackageMetadata package)
        {
            var packageId = new PackageId(package.Id, package.VersionString);

            WriteLine(Resources.AuditingPackage, packageId);

            return AuditPackagesInternal(new[] { packageId });
        }