using (new ProgressiveScope("docs", (s, e) => { Log($"{e.PercentValue.ToString("0.00")} % Running Docs - {e.CurrentActionName}..."); return Task.CompletedTask; }))
{
return await RunSubCommand();
}
[...]
using (new CodeAnalysisProgressiveScope((s, e) => { Log($"{e.PercentValue.ToString("0.00")} % Running Code Analysis - {e.CurrentActionName}..."); return Task.CompletedTask; }))
{
return await RunSubCommand();
}
[...]
public class CodeAnalysisProgressiveScope : ProgressiveScope
{
public CodeAnalysisProgressiveScope(AsyncEventHandler<ProgressEventArgs> onProgress = null) : base("CodeAnalysisProgressiveScope", onProgress)
{
}
public static ProgressReporter GetReporter() => ProgressReporter.Get("CodeAnalysisProgressiveScope") ?? new ProgressReporter();
}