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); }); }
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); }
protected virtual void BackgroundDispatch(MessageHandler handler) { PackageManagementBackgroundDispatcher.Dispatch(() => RunInternal()); }