public void UpdatePackageReference(Lib.PackageReference packageReference) { if (packageReference == null) { throw new ArgumentNullException("packageReference"); } this._packageReference = packageReference; this.Line = packageReference.StartLine; this.Column = packageReference.StartPos; }
public VulnerabilityTask(Lib.PackageReference packageReference, Lib.OSSIndex.Vulnerability vulnerability) { if (packageReference == null) { throw new ArgumentNullException("packageReference"); } if (vulnerability == null) { throw new ArgumentNullException("vulnerability"); } this._packageReference = packageReference; this._vulnerability = vulnerability; }