Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
 public AllPackageDisplayType(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor)
 {
     this.repo          = repo;
     this.nugetExecutor = nugetExecutor;
 }
Exemplo n.º 3
0
 public static IPackageDisplayType BuildUpgradeFilter(PackageRepo repo, NuGetExecutor nugetExecutor, ChocoExecutor chocoExecutor)
 => new UpgradeablePackageDisplayType(repo, nugetExecutor, chocoExecutor);
Exemplo n.º 4
0
 public UpgradeablePackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor)
 {
     this.chocoExecutor = chocoExecutor;
 }
Exemplo n.º 5
0
 public InstalledPackageDisplayType(PackageRepo repo, NuGetExecutor controller, ChocoExecutor chocoExecutor)
 {
     this.chocoExecutor = chocoExecutor;
 }
Exemplo n.º 6
0
 private async Task UpdateNuGetInfoAsync(NuGetExecutor nuGetExecutor)
 {
     await Task.WhenAll(LocalPackages.Select(t => Task.Run(() => nuGetExecutor.Update(t))));
 }