Skip to content
ConsoleMonster
Interface

ITaskbarProgressSource

ConsoleMonster.Output

Namespace
ConsoleMonster.Output
Assembly
ConsoleMonster
Modifiers
abstract

A widget that contributes to the terminal's progress indicator while it is in a live session: progress bars and lanes report a percentage, spinners and activities report work in progress, a dashboard reports failures and warnings. Implement it on custom widgets to take part.

Methods

public abstract bool TryGetTaskbarProgress(out TaskbarState state, out double fraction) #

The widget's contribution, if any.

Parameters

state ConsoleMonster.Output.TaskbarState required
The state (Normal, Indeterminate, Error or Paused).
fraction double required
The fraction done (0 to 1), or NaN when unknown.

Returns

bool False when the widget has nothing to report.