コード例 #1
0
 public static List <IPackageDisplayType> BuildDisplayTypes(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor) =>
 new List <IPackageDisplayType>
 {
     new AllPackageDisplayType(repo, nugetExecutor, chocoExecutor),
     new InstalledPackageDisplayType(repo, nugetExecutor, chocoExecutor),
     new UpgradeablePackageDisplayType(repo, nugetExecutor, chocoExecutor),
 };
コード例 #2
0
 public ImportedPackageDisplayType(string name, PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor, IEnumerable <string> importedPackageIds)
 {
     this.name          = name;
     this.controller    = controller;
     this.chocoExecutor = chocoExecutor;
     importedPackages   = importedPackageIds.Select(repo.GetPackage).ToList();
 }
コード例 #3
0
        public async Task UpdateAsync(PackageRepo repo, NuGetExecutor nuGetExecutor)
        {
            LocalPackages.Clear();
            repo.ClearLocalVersions();
            new UpdateLocalChocoTask(IncludePreReleases, repo, LocalPackages.Add).Execute();
            var updateNuGetInfoAsync = UpdateNuGetInfoAsync(nuGetExecutor);

            new UpdateOutdatedFlagsChocoTask(repo).Execute();
            await updateNuGetInfoAsync;
        }
コード例 #4
0
 public AllPackageDisplayType(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor)
 {
     this.repo          = repo;
     this.nugetExecutor = nugetExecutor;
 }
コード例 #5
0
 public static IPackageDisplayType BuildUpgradeFilter(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor)
 => new UpgradeablePackageDisplayType(repo, nugetExecutor, chocoExecutor);
コード例 #6
0
 public UpgradeablePackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor)
 {
     this.chocoExecutor = chocoExecutor;
 }
コード例 #7
0
 public InstalledPackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor)
 {
     this.chocoExecutor = chocoExecutor;
 }