static PackageManagementServices() { options = new PackageManagementOptions(); packageRepositoryCache = new PackageRepositoryCache (options); userAgentGenerator = new UserAgentGeneratorForRepositoryRequests (); userAgentGenerator.Register (packageRepositoryCache); progressProvider = new PackageManagementProgressProvider (packageRepositoryCache); registeredPackageRepositories = new RegisteredPackageRepositories(packageRepositoryCache, options); projectTemplatePackageSources = new RegisteredProjectTemplatePackageSources(); projectTemplatePackageRepositoryCache = new ProjectTemplatePackageRepositoryCache(projectTemplatePackageSources); outputMessagesView = new PackageManagementOutputMessagesView(packageManagementEvents); solution = new PackageManagementSolution (registeredPackageRepositories, projectService, packageManagementEvents); packageActionRunner = new PackageActionRunner(packageManagementEvents); progressMonitorFactory = new PackageManagementProgressMonitorFactory (); backgroundPackageActionRunner = new BackgroundPackageActionRunner (progressMonitorFactory, packageManagementEvents, progressProvider); projectTargetFrameworkMonitor = new ProjectTargetFrameworkMonitor (projectService); packageCompatibilityHandler = new PackageCompatibilityHandler (); packageCompatibilityHandler.MonitorTargetFrameworkChanges (projectTargetFrameworkMonitor); updatedPackagesInSolution = new UpdatedPackagesInSolution (solution, registeredPackageRepositories, packageManagementEvents); projectOperations = new PackageManagementProjectOperations (solution, registeredPackageRepositories, backgroundPackageActionRunner, packageManagementEvents); InitializeCredentialProvider(); PackageManagementBackgroundDispatcher.Initialize (); }
static PackageManagementServices() { options = new PackageManagementOptions(); packageRepositoryCache = new PackageRepositoryCache(options); userAgentGenerator = new UserAgentGeneratorForRepositoryRequests(); userAgentGenerator.Register(packageRepositoryCache); progressProvider = new PackageManagementProgressProvider(packageRepositoryCache); registeredPackageRepositories = new RegisteredPackageRepositories(packageRepositoryCache, options); projectTemplatePackageSources = new RegisteredProjectTemplatePackageSources(); projectTemplatePackageRepositoryCache = new ProjectTemplatePackageRepositoryCache(projectTemplatePackageSources); outputMessagesView = new PackageManagementOutputMessagesView(packageManagementEvents); solution = new PackageManagementSolution(registeredPackageRepositories, projectService, packageManagementEvents); packageActionRunner = new PackageActionRunner(packageManagementEvents); progressMonitorFactory = new PackageManagementProgressMonitorFactory(); backgroundPackageActionRunner = new BackgroundPackageActionRunner(progressMonitorFactory, packageManagementEvents, progressProvider); projectTargetFrameworkMonitor = new ProjectTargetFrameworkMonitor(projectService); packageCompatibilityHandler = new PackageCompatibilityHandler(); packageCompatibilityHandler.MonitorTargetFrameworkChanges(projectTargetFrameworkMonitor); updatedPackagesInSolution = new UpdatedPackagesInSolution(solution, registeredPackageRepositories, packageManagementEvents); projectOperations = new PackageManagementProjectOperations(solution, registeredPackageRepositories, backgroundPackageActionRunner, packageManagementEvents); InitializeCredentialProvider(); PackageManagementBackgroundDispatcher.Initialize(); }
/// <summary> /// Creates a new instance of the ProjectTemplatePackageRepositoryCache. /// </summary> public ProjectTemplatePackageRepositoryCache(RegisteredProjectTemplatePackageSources registeredPackageSources) { this.packageRepositoryCache = new PackageRepositoryCache(registeredPackageSources.PackageSources, new List <RecentPackageInfo>()); this.registeredPackageSources = registeredPackageSources; }
/// <summary> /// Creates a new instance of the ProjectTemplatePackageRepositoryCache. /// </summary> public ProjectTemplatePackageRepositoryCache(RegisteredProjectTemplatePackageSources registeredPackageSources) { this.packageRepositoryCache = new PackageRepositoryCache(registeredPackageSources.PackageSources, new List<RecentPackageInfo>()); this.registeredPackageSources = registeredPackageSources; }