public void Execute()
 {
     // Queue the check for updates with the background dispatcher so
     // the NuGet addin does not create another separate Package Console.
     PackageManagementBackgroundDispatcher.Dispatch(() => {
         updatedPackagesInSolution.CheckForUpdates();
     });
 }
 public void Execute(CancellationToken cancellationToken)
 {
     // Queue the check for updates with the background dispatcher so
     // the NuGet addin does not create another separate Package Console.
     PackageManagementBackgroundDispatcher.Dispatch(() => {
         updatedPackagesInWorkspace.CheckForUpdates(solution);
     });
 }
Пример #3
0
        void Restore(PackageRestorer restorer, Action afterRestore)
        {
            ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesBeforeUpdateMessage();

            PackageManagementBackgroundDispatcher.Dispatch(() => {
                restorer.Restore(progressMessage);
                if (!restorer.RestoreFailed)
                {
                    afterRestore();
                }
            });
        }
 protected virtual void BackgroundDispatch(Action action)
 {
     PackageManagementBackgroundDispatcher.Dispatch(action);
 }
Пример #5
0
 protected virtual void BackgroundDispatch(MessageHandler handler)
 {
     PackageManagementBackgroundDispatcher.Dispatch(() => RunInternal());
 }