Class
PhasesHandle
ConsoleMonster.Widgets
Thread-safe live handle for a Phases widget.
Inheritance
- LiveHandle
- PhasesHandle
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 Phases.Handle
Constructors
public PhasesHandle(ILiveDispatcher dispatcher, string widgetId) #Creates a handle.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The dispatcher.
- widgetId string
- The phases name.
Methods
public void Complete(string key, StatusKind status = Pass, string? detail = null) #Finishes a phase.
Parameters
- key string
- The phase.
- status ConsoleMonster.Styling.StatusKind = Pass
- The final status.
- detail string? = null
- A detail (default: the measured duration).
public void Detail(string key, string detail) #Sets a phase's detail (for example a percentage).
Parameters
- key string
- The phase.
- detail string
- The detail.
public void Item(string phase, string key, StatusKind status, string? detail = null) #Adds or updates an item of a phase; the running phase fans out to its items.
Parameters
- phase string
- The phase key.
- key string
- The item key within the phase.
- status ConsoleMonster.Styling.StatusKind
- The item status.
- detail string? = null
- A detail, or null to keep the existing one.
public void Start(string key) #Marks a phase as running (its duration is measured until the next state change).
Parameters
- key string
- The phase.