Esempio n. 1
0
        public async Task <IEnumerable <NuGetPackageLicense> > GetPackagesWithLicences(
            IEnumerable <NuGetProjectAction> actions,
            CancellationToken cancellationToken)
        {
            var licenses = new List <NuGetPackageLicense> ();

            foreach (PackageIdentity package in GetPackages(actions))
            {
                NuGetPackageLicense license = await GetPackageLicense(package, cancellationToken);

                if (license != null)
                {
                    licenses.Add(license);
                }
            }

            return(licenses);
        }
Esempio n. 2
0
 public PackageLicenseViewModel(NuGetPackageLicense packageLicense)
 {
     this.packageLicense = packageLicense;
 }