protected override void TryUpdatingAllPackages() { List <IPackageFromRepository> packages = GetPackagesFromViewModels().ToList(); using (IDisposable operation = StartUpdateOperation(packages.First())) { var factory = new UpdatePackagesActionFactory(logger, packageManagementEvents); IUpdatePackagesAction action = factory.CreateAction(selectedProjects, packages); ActionRunner.Run(action); } }
public IUpdatePackagesAction CreateAction( PackageManagementSelectedProjects selectedProjects, IEnumerable <IPackageFromRepository> packages) { this.selectedProjects = selectedProjects; this.packages = packages; singleProjectSelected = selectedProjects.HasSingleProjectSelected(); CreateProjectForDetermingPackageOperations(); IUpdatePackagesAction action = CreateActionInternal(); action.AddPackages(packages); action.Logger = logger; IEnumerable <PackageOperation> operations = GetPackageOperations(action); action.AddOperations(operations); return(action); }
IEnumerable <PackageOperation> GetPackageOperations(IUpdatePackagesAction action) { return(project.GetUpdatePackagesOperations(packages, action)); }
IEnumerable<PackageOperation> GetPackageOperations(IUpdatePackagesAction action) { return project.GetUpdatePackagesOperations(packages, action); }