Class AnsiCliProgressContext
Container for one or more ANSI console progress bars.
[MustDisposeResource]
public sealed class AnsiCliProgressContext
- Inheritance
-
objectAnsiCliProgressContext
- Extension Methods
Constructors
AnsiCliProgressContext()
Starts a progress context.
public AnsiCliProgressContext()
Properties
IsFinished
Indicates whether all tasks have completed.
public bool IsFinished { get; }
Property Value
- bool
Methods
Add(string)
Adds a new progress bar to the context.
public IProgress<TaskSnapshot> Add(string description)
Parameters
description
stringA descriptive text to show next to the progress bar.
Returns
- IProgress<TaskSnapshot>
A handle for updating the state of the progress bar.
Dispose()
Ends the progress context.
public void Dispose()