當前位置: 首頁>>代碼示例>>C#>>正文


C# PackageManagement.ProgressMonitorStatusMessage類代碼示例

本文整理匯總了C#中MonoDevelop.PackageManagement.ProgressMonitorStatusMessage的典型用法代碼示例。如果您正苦於以下問題:C# ProgressMonitorStatusMessage類的具體用法?C# ProgressMonitorStatusMessage怎麽用?C# ProgressMonitorStatusMessage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ProgressMonitorStatusMessage類屬於MonoDevelop.PackageManagement命名空間,在下文中一共展示了ProgressMonitorStatusMessage類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Run

		public void Run (ProgressMonitorStatusMessage progressMessage, IPackageAction action)
		{
			RunProgressMessage = progressMessage;
			ActionRun = action;

			RunAction (progressMessage, action);
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:7,代碼來源:FakeBackgroundPackageActionRunner.cs

示例2: Run

		public void Run (ProgressMonitorStatusMessage progressMessage, IEnumerable<IPackageAction> actions)
		{
			AddInstallActionsToPendingQueue (actions);
			packageManagementEvents.OnPackageOperationsStarting ();
			runCount++;
			BackgroundDispatch (() => TryRunActionsWithProgressMonitor (progressMessage, actions.ToList ()));
		}
開發者ID:nerzhulart,項目名稱:monodevelop,代碼行數:7,代碼來源:BackgroundPackageActionRunner.cs

示例3: RestorePackages

		void RestorePackages(IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			var commandLine = new NuGetPackageRestoreCommandLine(solution);

			progressMonitor.Log.WriteLine(commandLine.ToString());

			RestorePackages(progressMonitor, progressMessage, commandLine);
		}
開發者ID:Kalnor,項目名稱:monodevelop,代碼行數:8,代碼來源:PackageRestoreRunner.cs

示例4: Update

		void Update (UpdateAllPackagesInSolution updateAllPackages, ProgressMonitorStatusMessage progressMessage)
		{
			try {
				List<UpdatePackageAction> updateActions = updateAllPackages.CreateActions ().ToList ();
				PackageManagementServices.BackgroundPackageActionRunner.Run (progressMessage, updateActions);
			} catch (Exception ex) {
				PackageManagementServices.BackgroundPackageActionRunner.ShowError (progressMessage, ex);
			}
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:9,代碼來源:UpdateAllPackagesInSolutionHandler.cs

示例5: CheckForUpdatesProgressMonitor

		public CheckForUpdatesProgressMonitor (
			IPackageManagementProgressMonitorFactory progressMonitorFactory,
			IPackageManagementEvents packageEvents)
		{
			progressMessage = ProgressMonitorStatusMessageFactory.CreateCheckingForPackageUpdatesMessage ();
			this.progressMonitor = progressMonitorFactory.CreateProgressMonitor (progressMessage.Status);

			eventMonitor = new PackageUpdatesEventMonitor (progressMonitor, packageEvents);
		}
開發者ID:riverans,項目名稱:monodevelop,代碼行數:9,代碼來源:CheckForUpdatesProgressMonitor.cs

示例6: CheckForPackageUpdates

		void CheckForPackageUpdates (IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			updatedPackagesInSolution.CheckForUpdates ();
			if (updatedPackagesInSolution.AnyUpdates ()) {
				progressMonitor.ReportSuccess (GettextCatalog.GetString ("Package updates are available."));
			} else {
				progressMonitor.ReportSuccess (progressMessage.Success);
			}
		}
開發者ID:aBothe,項目名稱:monodevelop,代碼行數:9,代碼來源:PackageUpdateChecker.cs

示例7: Restore

		public void Restore (ProgressMonitorStatusMessage progressMessage)
		{
			try {
				if (AnyMissingPackages ()) {
					RestoreWithProgressMonitor (progressMessage);
				}
			} catch (Exception ex) {
				LoggingService.LogInternalError (ex);
				RestoreFailed = true;
			}
		}
開發者ID:aBothe,項目名稱:monodevelop,代碼行數:11,代碼來源:PackageRestorer.cs

示例8: UpdatePackagesProgressMonitorStatusMessage

		public UpdatePackagesProgressMonitorStatusMessage (
			IEnumerable<IPackageManagementProject> projects,
			string packagesUpToDateMessage,
			string packagesUpToDateWarningMessage,
			ProgressMonitorStatusMessage message)
			: base (message.Status, message.Success, message.Error, message.Warning)
		{
			this.packagesUpToDateMessage = packagesUpToDateMessage;
			this.packagesUpToDateWarningMessage = packagesUpToDateWarningMessage;
			monitor = new UpdatedPackagesMonitor (projects);
		}
開發者ID:brantwedel,項目名稱:monodevelop,代碼行數:11,代碼來源:UpdatePackagesProgressMonitorStatusMessage.cs

示例9: RemovePackage

		void RemovePackage (PackageReferenceNode packageReferenceNode, ProgressMonitorStatusMessage progressMessage)
		{
			IPackageManagementProject project = PackageManagementServices.Solution.GetActiveProject ();
			UninstallPackageAction action = project.CreateUninstallPackageAction ();
			action.Package = project.FindPackage (packageReferenceNode.Id);

			if (action.Package != null) {
				PackageManagementServices.BackgroundPackageActionRunner.Run (progressMessage, action);
			} else {
				ShowMissingPackageError (progressMessage, packageReferenceNode);
			}
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:12,代碼來源:PackageReferenceNodeCommandHandler.cs

示例10: Run

		public void Run (PackageReferenceNode packageReferenceNode, ProgressMonitorStatusMessage progressMessage)
		{
			try {
				IPackageManagementProject project = solution.GetActiveProject ();
				ReinstallPackageAction action = project.CreateReinstallPackageAction ();
				action.PackageId = packageReferenceNode.Id;
				action.PackageVersion = packageReferenceNode.Version;

				runner.Run (progressMessage, action);
			} catch (Exception ex) {
				runner.ShowError (progressMessage, ex);
			}
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:13,代碼來源:PackageReinstaller.cs

示例11: RunInternal

		void RunInternal (IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			var commandLine = new MonoPclCommandLine () {
				List = true
			};
			commandLine.BuildCommandLine ();

			progressMonitor.ShowPackageConsole ();
			progressMonitor.Log.WriteLine (commandLine.ToString ());
			progressMonitor.Log.WriteLine ();

			RunMonoPcl (progressMonitor, progressMessage, commandLine);
		}
開發者ID:modulexcite,項目名稱:monodevelop-nuget-extensions,代碼行數:13,代碼來源:MonoPclRunner.cs

示例12: CheckForPackageUpdates

		void CheckForPackageUpdates (
			ProgressMonitor progressMonitor,
			ProgressMonitorStatusMessage progressMessage,
			PackageUpdatesEventMonitor eventMonitor)
		{
			updatedPackagesInSolution.CheckForUpdates ();
			if (updatedPackagesInSolution.AnyUpdates ()) {
				progressMonitor.ReportSuccess (GettextCatalog.GetString ("Package updates are available."));
			} else if (eventMonitor.WarningReported) {
				progressMonitor.ReportWarning (progressMessage.Warning);
			} else {
				progressMonitor.ReportSuccess (progressMessage.Success);
			}
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:14,代碼來源:PackageUpdateChecker.cs

示例13: Run

		public void Run (ProgressMonitorStatusMessage progressMessage)
		{
			IProgressMonitor progressMonitor = CreateProgressMonitor (progressMessage);

			try {
				RestorePackages(progressMonitor, progressMessage);
			} catch (Exception ex) {
				LoggingService.LogInternalError (ex);
				progressMonitor.Log.WriteLine(ex.Message);
				progressMonitor.ReportError (progressMessage.Error, null);
				progressMonitor.ShowPackageConsole ();
				progressMonitor.Dispose();
				RestoreFailed = true;
			}
		}
開發者ID:aBothe,項目名稱:monodevelop,代碼行數:15,代碼來源:PackageRestoreRunner.cs

示例14: Run

		public void Run (PackageReferenceNode packageReferenceNode, ProgressMonitorStatusMessage progressMessage)
		{
			try {
				var solutionManager = PackageManagementServices.Workspace.GetSolutionManager (packageReferenceNode.Project.ParentSolution);

				var action = new ReinstallNuGetPackageAction (
					packageReferenceNode.Project,
					solutionManager);
				action.PackageId = packageReferenceNode.Id;
				action.Version = packageReferenceNode.Version;

				runner.Run (progressMessage, action);
			} catch (Exception ex) {
				runner.ShowError (progressMessage, ex);
			}
		}
開發者ID:sushihangover,項目名稱:monodevelop,代碼行數:16,代碼來源:PackageReinstaller.cs

示例15: Run

		public void Run (ProgressMonitorStatusMessage progressMessage)
		{
			using (ProgressMonitor progressMonitor = CreateProgressMonitor (progressMessage)) {
				using (PackageManagementEventsMonitor eventMonitor = CreateEventMonitor (progressMonitor)) {
					try {
						RestorePackages (progressMonitor, progressMessage);
					} catch (Exception ex) {
						LoggingService.LogError (progressMessage.Error, ex);
						progressMonitor.Log.WriteLine (ex.Message);
						progressMonitor.ReportError (progressMessage.Error, null);
						progressMonitor.ShowPackageConsole ();
						progressMonitor.Dispose ();
						RestoreFailed = true;
					}
				}
			}
		}
開發者ID:pabloescribanoloza,項目名稱:monodevelop,代碼行數:17,代碼來源:PackageRestoreRunner.cs


注:本文中的MonoDevelop.PackageManagement.ProgressMonitorStatusMessage類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。