public void RestoreAllPackagesInSolution (
			IEnumerable<DotNetProject> projects,
			Action afterRestore)
		{
			var restorer = new PackageRestorer (projects);
			Restore (restorer, afterRestore);
		}
        public void RestoreAllPackagesInSolution(
            IEnumerable <DotNetProject> projects,
            Action afterRestore)
        {
            var restorer = new PackageRestorer(projects);

            Restore(restorer, afterRestore);
        }
示例#3
0
        public void RestoreProjectPackages(
            IPackageManagementSolution solution,
            DotNetProject project,
            Action afterRestore)
        {
            var restorer = new PackageRestorer(solution, project);

            Restore(restorer, afterRestore);
        }
		void Restore (PackageRestorer restorer, Action afterRestore)
		{
			ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesBeforeUpdateMessage ();

			DispatchService.BackgroundDispatch (() => {
				restorer.Restore (progressMessage);
				if (!restorer.RestoreFailed) {
					afterRestore ();
				}
			});
		}
示例#5
0
        void Restore(PackageRestorer restorer, Action afterRestore)
        {
            ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesBeforeUpdateMessage();

            PackageManagementBackgroundDispatcher.Dispatch(() => {
                restorer.Restore(progressMessage);
                if (!restorer.RestoreFailed)
                {
                    afterRestore();
                }
            });
        }
		public void RestoreProjectPackages (
			IEnumerable<DotNetProject> projects,
			Action afterRestore)
		{
			ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesBeforeUpdateMessage ();

			var restorer = new PackageRestorer (projects);
			DispatchService.BackgroundDispatch (() => {
				restorer.Restore (progressMessage);
				if (!restorer.RestoreFailed) {
					afterRestore ();
				}
			});
		}
		void RestoreAndCheckForUpdates ()
		{
			bool checkUpdatesAfterRestore = ShouldCheckForUpdates && AnyProjectHasPackages ();

			var restorer = new PackageRestorer (projectService.OpenSolution.Solution);
			PackageManagementBackgroundDispatcher.Dispatch (() => {
				restorer.Restore ();
				if (checkUpdatesAfterRestore && !restorer.RestoreFailed) {
					CheckForUpdates ();
				}
				restorer = null;
			});
		}
        public void RestoreProjectPackages(DotNetProject project, Action afterRestore)
        {
            var restorer = new PackageRestorer(project);

            Restore(restorer, afterRestore);
        }
		public void RestoreProjectPackages (DotNetProject project, Action afterRestore)
		{
			var restorer = new PackageRestorer (project);
			Restore (restorer, afterRestore);
		}
		public void RestoreProjectPackages (
			IPackageManagementSolution solution,
			DotNetProject project,
			Action afterRestore)
		{
			var restorer = new PackageRestorer (solution, project);
			Restore (restorer, afterRestore);
		}