StatusContext Class

Represents a context that can be used to interact with a Status.
public sealed class StatusContext
Namespace
Spectre.Console

Properties

Spinner Spinner
Gets or sets the current spinner.
Style SpinnerStyle
Gets or sets the current spinner style.
string Status
Gets or sets the current status.

Methods

void Refresh()
Refreshes the status.

Extension Methods

T And<StatusContext>(Action<StatusContext>)
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.
StatusContext Spinner(Spinner)
Sets the spinner.
StatusContext SpinnerStyle(Style)
Sets the spinner style.
StatusContext Status(string)
Sets the status message.