ProgressContext Class
Represents a context that can be used to interact with a
Progress
.
public sealed class ProgressContext
- Namespace
- Spectre
.Console
Properties
- bool IsFinished
- Gets a value indicating whether or not all started tasks have completed.
Methods
-
ProgressTask AddTask
(string, bool, double) - Adds a task.
-
ProgressTask AddTask
(string, Progress Task Settings) - Adds a task.
-
ProgressTask AddTaskAfter
(string, ProgressTask, bool, double) - Adds a task after the reference task.
-
ProgressTask AddTaskAfter
(string, Progress Task Settings, ProgressTask) - Adds a task after the reference task.
-
ProgressTask AddTaskAt
(string, int, bool, double) - Adds a task.
-
ProgressTask AddTaskAt
(string, Progress Task Settings, int) - Adds a task at the specified index.
-
ProgressTask AddTaskBefore
(string, ProgressTask, bool, double) - Adds a task before the reference task.
-
ProgressTask AddTaskBefore
(string, Progress Task Settings, ProgressTask) - Adds a task before the reference task.
-
void Refresh
() - Refreshes the current progress.
Extension Methods
-
T And
< Progress Context> (Action < Progress Context> ) - Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.