Class
ProgressHandle
ConsoleMonster.Widgets
Thread-safe live handle for a ProgressBar.
Inheritance
- LiveHandle
- ProgressHandle
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
- Method ProgressBar.Handle
Constructors
public ProgressHandle(ILiveDispatcher dispatcher, string widgetId) #Creates a handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- widgetId string
- The bar name.
Methods
public void Advance(double amount = 1) #Adds to the value.
Parameters
- amount double = 1
- The amount (default 1).
public void Complete(StatusKind status = Pass) #Sets the final status (Pass, Fail, Warn).
Parameters
- status ConsoleMonster.Styling.StatusKind = Pass
- The status.
public void Set(double value, double? total = null) #Sets the value (and optionally the total).
Parameters
- value double
- The value.
- total double? = null
- The total, or null to keep it; zero explicitly clears an unknown total.