Class
SummaryBarHandle
ConsoleMonster.Widgets
Thread-safe updates for a SummaryBar through its session's dispatcher.
Inheritance
- LiveHandle
- SummaryBarHandle
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 SummaryBar.Handle
Constructors
public SummaryBarHandle(ILiveDispatcher dispatcher, string widgetId) #Creates a summary-bar handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- widgetId string
- The summary bar's name.
Methods
public void SetCounter(string label, int count, StatusKind? status = null) #Adds or replaces a named counter in apply order.
Parameters
- label string
- The nonempty counter label, optionally containing a {0} count placeholder.
- count int
- The count.
- status ConsoleMonster.Styling.StatusKind? = null
- The status for its marker and tone, or null to retain the existing status.
public void SetProgress(double? value = null, double? total = null) #Sets progress; a kept value uses the preceding queued update, not a producer's stale copy.
Parameters
- value double? = null
- Items completed, or null to leave the value unchanged.
- total double? = null
- Total items, or null to leave it unchanged.