File: IDE\PackageRestoreData.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.PackageManagement\NuGet.PackageManagement.csproj (NuGet.PackageManagement)
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

#nullable disable

using System;
using System.Collections.Generic;

namespace NuGet.PackageManagement
{
    public class PackageRestoreData
    {
        public Packaging.PackageReference PackageReference { get; }
        public IEnumerable<string> ProjectNames { get; }
        public bool IsMissing { get; }

        public PackageRestoreData(Packaging.PackageReference packageReference, IEnumerable<string> projectNames, bool isMissing)
        {
            if (packageReference == null)
            {
                throw new ArgumentNullException(nameof(packageReference));
            }

            if (projectNames == null)
            {
                throw new ArgumentNullException(nameof(projectNames));
            }

            PackageReference = packageReference;
            ProjectNames = projectNames;
            IsMissing = isMissing;
        }
    }
}