Task CheckLicenses(CancellationToken cancellationToken)
 {
     return(NuGetPackageLicenseAuditor.AcceptLicenses(
                primarySources,
                actions,
                packageManager,
                GetLicenseAcceptanceService(),
                cancellationToken));
 }
Esempio n. 2
0
        public static Task AcceptLicenses(
            IEnumerable <SourceRepository> sources,
            IEnumerable <NuGetProjectAction> actions,
            INuGetPackageManager packageManager,
            ILicenseAcceptanceService licenseAcceptanceService,
            CancellationToken cancellationToken)
        {
            var auditor = new NuGetPackageLicenseAuditor(sources, packageManager, licenseAcceptanceService);

            return(auditor.AcceptLicenses(actions, cancellationToken));
        }
		public static Task AcceptLicenses (
			IEnumerable<SourceRepository> sources,
			IEnumerable<NuGetProjectAction> actions,
			INuGetPackageManager packageManager,
			ILicenseAcceptanceService licenseAcceptanceService,
			CancellationToken cancellationToken)
		{
			var auditor = new NuGetPackageLicenseAuditor (sources, packageManager, licenseAcceptanceService);
			return auditor.AcceptLicenses (actions, cancellationToken);
		}