ProgressTaskState Class
Represents progress task state.
public sealed class ProgressTaskState
- Namespace
- Spectre
.Console
Constructors
-
ProgressTaskState
() -
Initializes a new instance of the
ProgressTaskState
class.
Methods
-
T Get
<T> (string) - Gets the state value for the specified key.
-
T Update
<T> (string, Func <T, T> ) - Updates a task state value.
Extension Methods
-
T And
< Progress Task State> (Action < Progress Task State> ) - 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.