Skip to content
ConsoleMonster
Class

SummaryBarHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Thread-safe updates for a SummaryBar through its session's dispatcher.

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 SummaryBarHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a summary-bar handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher.
widgetId string required
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 required
The nonempty counter label, optionally containing a {0} count placeholder.
count int required
The count.
status ConsoleMonster.Styling.StatusKind? = null optional
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 optional
Items completed, or null to leave the value unchanged.
total double? = null optional
Total items, or null to leave it unchanged.