本文整理匯總了C#中MonoDevelop.Core.ProgressMonitor.EndStep方法的典型用法代碼示例。如果您正苦於以下問題:C# ProgressMonitor.EndStep方法的具體用法?C# ProgressMonitor.EndStep怎麽用?C# ProgressMonitor.EndStep使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MonoDevelop.Core.ProgressMonitor
的用法示例。
在下文中一共展示了ProgressMonitor.EndStep方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: RebuildAsync
async Task<BuildResult> RebuildAsync (IBuildTarget entry, ProgressMonitor monitor, OperationContext operationContext)
{
ITimeTracker tt = Counters.BuildItemTimer.BeginTiming ("Rebuilding " + entry.Name);
try {
OnStartClean (monitor, tt);
monitor.BeginTask (GettextCatalog.GetString ("Rebuilding..."), 2);
monitor.BeginStep (GettextCatalog.GetString ("Rebuilding... (Clean)"));
var res = await CleanAsync (entry, monitor, tt, true, operationContext);
monitor.EndStep ();
if (res.HasErrors) {
tt.End ();
monitor.Dispose ();
return res;
}
if (StartBuild != null) {
BeginBuild (monitor, tt, true);
}
monitor.BeginStep (GettextCatalog.GetString ("Rebuilding... (Build)"));
return await BuildSolutionItemAsync (entry, monitor, tt, operationContext:operationContext);
} finally {
tt.End ();
}
}