Skip to content
ConsoleMonster

API Reference

Class

ProgressHandle

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 target) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher requiredposition: 0
The dispatcher.
target System.String requiredposition: 1
The bar name.

Methods

public Void Advance(Double amount = 1) #
Returns: Void

Adds to the value.

Parameters

amount System.Double = 1 optionalposition: 0
The amount (default 1).
public Void Complete(StatusKind status = Pass) #
Returns: Void

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

Parameters

status ConsoleMonster.Styling.StatusKind = Pass optionalposition: 0
The status.
public Void Label(String label) #
Returns: Void

Changes the label.

Parameters

label System.String requiredposition: 0
The label (markup).
public Void Set(Double value, Double total = 0) #
Returns: Void

Sets the value (and optionally the total).

Parameters

value System.Double requiredposition: 0
The value.
total System.Double = 0 optionalposition: 1
The total, or 0 to keep it.