コード例 #1
0
		public PackagesViewModels2 (
			IPackageManagementSolution solution,
			IRegisteredPackageRepositories registeredPackageRepositories,
			IThreadSafePackageManagementEvents packageManagementEvents,
			IPackageActionRunner actionRunner,
			ITaskFactory taskFactory)
		{
			var packageViewModelFactory = new PackageViewModelFactory2 (solution, packageManagementEvents, actionRunner);
			var updatedPackageViewModelFactory = new UpdatedPackageViewModelFactory2 (packageViewModelFactory);
			var installedPackageViewModelFactory = new InstalledPackageViewModelFactory2 (packageViewModelFactory);

			IRecentPackageRepository recentPackageRepository = PackageManagementServices.RecentPackageRepository;
			AvailablePackagesViewModel = new AvailablePackagesViewModel2 (registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory);
			InstalledPackagesViewModel = new InstalledPackagesViewModel2 (solution, packageManagementEvents, registeredPackageRepositories, installedPackageViewModelFactory, taskFactory);
			UpdatedPackagesViewModel = new UpdatedPackagesViewModel2 (solution, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory);
			RecentPackagesViewModel = new RecentPackagesViewModel2 (packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory);
		}
コード例 #2
0
        public PackagesViewModels2(
            IPackageManagementSolution solution,
            IRegisteredPackageRepositories registeredPackageRepositories,
            IThreadSafePackageManagementEvents packageManagementEvents,
            IPackageActionRunner actionRunner,
            ITaskFactory taskFactory)
        {
            var packageViewModelFactory          = new PackageViewModelFactory2(solution, packageManagementEvents, actionRunner);
            var updatedPackageViewModelFactory   = new UpdatedPackageViewModelFactory2(packageViewModelFactory);
            var installedPackageViewModelFactory = new InstalledPackageViewModelFactory2(packageViewModelFactory);

            IRecentPackageRepository recentPackageRepository = PackageManagementServices.RecentPackageRepository;

            AvailablePackagesViewModel = new AvailablePackagesViewModel2(registeredPackageRepositories, recentPackageRepository, packageViewModelFactory, taskFactory);
            InstalledPackagesViewModel = new InstalledPackagesViewModel2(solution, packageManagementEvents, registeredPackageRepositories, installedPackageViewModelFactory, taskFactory);
            UpdatedPackagesViewModel   = new UpdatedPackagesViewModel2(solution, registeredPackageRepositories, updatedPackageViewModelFactory, taskFactory);
            RecentPackagesViewModel    = new RecentPackagesViewModel2(packageManagementEvents, registeredPackageRepositories, packageViewModelFactory, taskFactory);
        }