Пример #1
0
        public void UpdatePackageReference(Lib.PackageReference packageReference)
        {
            if (packageReference == null)
            {
                throw new ArgumentNullException("packageReference");
            }

            this._packageReference = packageReference;

            this.Line = packageReference.StartLine;
            this.Column = packageReference.StartPos;
        }
Пример #2
0
        public void UpdatePackageReference(Lib.PackageReference packageReference)
        {
            if (packageReference == null)
            {
                throw new ArgumentNullException("packageReference");
            }

            this._packageReference = packageReference;
            
            this.Line = packageReference.StartLine;
            this.Column = packageReference.StartPos;
        }
Пример #3
0
        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;
        }
Пример #4
0
        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;
        }