Skip to content
ConsoleMonster
Class

ProgressHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe live handle for a ProgressBar.

Inheritance

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public ProgressHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher.
widgetId string required
The bar name.

Methods

public void Advance(double amount = 1) #

Adds to the value.

Parameters

amount double = 1 optional
The amount (default 1).
public void Complete(StatusKind status = Pass) #

Sets the final status (Pass, Fail, Warn).

Parameters

status ConsoleMonster.Styling.StatusKind = Pass optional
The status.
public void Label(string label) #

Changes the label.

Parameters

label string required
The label (markup).
public void Set(double value, double? total = null) #

Sets the value (and optionally the total).

Parameters

value double required
The value.
total double? = null optional
The total, or null to keep it; zero explicitly clears an unknown total.