API Reference
Class
SummaryBarHandle
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 target) #Creates a summary-bar handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- target System.String
- The summary bar's name.
Methods
public Void SetCounter(String label, Int32 count, StatusKind? status = null) #Returns:
VoidAdds or replaces a named counter in apply order.
Parameters
- label System.String
- The nonempty counter label, optionally containing a {0} count placeholder.
- count System.Int32
- 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 done = -1, Double total = -1) #Returns:
VoidSets progress; a kept value uses the preceding queued update, not a producer's stale copy.
Parameters
- done System.Double = -1
- Items completed, or SummaryBar.Keep to leave the value unchanged.
- total System.Double = -1
- Total items, or SummaryBar.Keep to leave it unchanged.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?