本文整理汇总了C#中MonoDevelop.PackageManagement.ProgressMonitorStatusMessage类的典型用法代码示例。如果您正苦于以下问题:C# ProgressMonitorStatusMessage类的具体用法?C# ProgressMonitorStatusMessage怎么用?C# ProgressMonitorStatusMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProgressMonitorStatusMessage类属于MonoDevelop.PackageManagement命名空间,在下文中一共展示了ProgressMonitorStatusMessage类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: CreateRunner
void CreateRunner ()
{
actions = new List<IPackageAction> ();
progressMessage = new ProgressMonitorStatusMessage ("Status", "Success", "Error", "Warning");
packageManagementEvents = new PackageManagementEvents ();
progressMonitorFactory = new FakeProgressMonitorFactory ();
progressMonitor = progressMonitorFactory.ProgressMonitor;
repositoryFactoryEvents = new FakePackageRepositoryFactoryEvents ();
progressProvider = new PackageManagementProgressProvider (repositoryFactoryEvents, handler => {
handler.Invoke ();
});
runner = new TestableBackgroundPackageActionRunner (
progressMonitorFactory,
packageManagementEvents,
progressProvider);
}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:17,代码来源:BackgroundPackageActionRunnerTests.cs
示例17: RunActionsWithProgressMonitor
void RunActionsWithProgressMonitor (ProgressMonitorStatusMessage progressMessage, IList<IPackageAction> installPackageActions)
{
using (IProgressMonitor monitor = progressMonitorFactory.CreateProgressMonitor (progressMessage.Status)) {
using (PackageManagementEventsMonitor eventMonitor = CreateEventMonitor (monitor)) {
try {
monitor.BeginTask (null, installPackageActions.Count);
RunActionsWithProgressMonitor (monitor, installPackageActions);
eventMonitor.ReportResult (progressMessage);
} catch (Exception ex) {
RemoveInstallActions (installPackageActions);
eventMonitor.ReportError (progressMessage, ex);
} finally {
monitor.EndTask ();
GuiDispatch (() => {
RemoveInstallActions (installPackageActions);
packageManagementEvents.OnPackageOperationsFinished ();
});
}
}
}
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:21,代码来源:BackgroundPackageActionRunner.cs
示例18: RestorePackages
void RestorePackages (ProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
{
var msbuildTargetsMonitor = new MSBuildTargetsRestoredMonitor (packageManagementEvents);
using (msbuildTargetsMonitor) {
var action = new RestorePackagesAction (solution, packageManagementEvents);
if (project != null) {
action.Project = project;
}
action.Execute ();
}
RefreshProjectReferences (msbuildTargetsMonitor.AnyMSBuildTargetsRestored);
ForceCreationOfSharedRepositoriesConfigFile ();
progressMonitor.ReportSuccess (progressMessage.Success);
packageManagementEvents.OnPackagesRestored ();
}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:17,代码来源:PackageRestoreRunner.cs
示例19: TryRunActionsWithProgressMonitor
void TryRunActionsWithProgressMonitor (ProgressMonitorStatusMessage progressMessage, IList<IPackageAction> actions)
{
try {
RunActionsWithProgressMonitor (progressMessage, actions);
} catch (Exception ex) {
LoggingService.LogInternalError (ex);
} finally {
GuiDispatch (() => runCount--);
}
}
开发者ID:stephenoakman,项目名称:monodevelop,代码行数:10,代码来源:BackgroundPackageActionRunner.cs
示例20: ReportResult
public void ReportResult (ProgressMonitorStatusMessage progressMessage)
{
if (HasWarnings) {
progressMonitor.ReportWarning (progressMessage.Warning);
} else {
progressMonitor.ReportSuccess (progressMessage.Success);
}
}
开发者ID:nerzhulart,项目名称:monodevelop,代码行数:8,代码来源:PackageManagementEventsMonitor.cs
注:本文中的MonoDevelop.PackageManagement.ProgressMonitorStatusMessage类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论