ProgressTaskState

Represents progress task state.

Represents progress task state.

Constructors

public ProgressTaskState()

Initializes a new instance of the ProgressTaskState class.

Methods

public T Get<T>(string key)

Gets the state value for the specified key.

Parameters:

key (string)
The state key.

Returns:

The value for the specified key.

public T Update<T>(string key, Func<T, T> func)

Updates a task state value.

Parameters:

key (string)
The key.
func (Func<T, T>)
The transformation function.

Returns:

The updated value.