コード例 #1
0
		public void RestoreAllPackagesInSolution (
			IEnumerable<DotNetProject> projects,
			Action afterRestore)
		{
			var restorer = new PackageRestorer (projects);
			Restore (restorer, afterRestore);
		}
コード例 #2
0
        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);
        }
コード例 #4
0
		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();
                }
            });
        }
コード例 #6
0
		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 ();
				}
			});
		}
コード例 #7
0
		void RestoreAndCheckForUpdates ()
		{
			bool checkUpdatesAfterRestore = ShouldCheckForUpdates && AnyProjectHasPackages ();

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

            Restore(restorer, afterRestore);
        }
コード例 #9
0
		public void RestoreProjectPackages (DotNetProject project, Action afterRestore)
		{
			var restorer = new PackageRestorer (project);
			Restore (restorer, afterRestore);
		}
コード例 #10
0
		public void RestoreProjectPackages (
			IPackageManagementSolution solution,
			DotNetProject project,
			Action afterRestore)
		{
			var restorer = new PackageRestorer (solution, project);
			Restore (restorer, afterRestore);
		}