ILiveTarget
ConsoleMonster.Live
A widget that accepts live updates. ILiveTarget.Apply and ILiveTarget.Describe are only ever called on the session's render thread during normal operation. After that thread joins, the stopping caller may perform the final drain. These phases are serialized, so implementations keep plain, unsynchronised state. Without a session, the definition thread owns updates.
Usage
Explore 3 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.
Accepted by parameters 3
- Constructor ImmediateDispatcher.ImmediateDispatcher
- Method LiveSession.Register
- Method LiveSession.TryGetTarget
Methods
public abstract void Apply(LiveEvent liveEvent) #Applies an event to the widget's state.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public abstract string? Describe(LiveEvent liveEvent) #Returns a line describing the event for line-based outputs (Stream/Plain), or null when the event is not worth a line (for example a single counter increment). Called after ILiveTarget.Apply.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event that was applied.
Returns
string? A plain line or null.Properties
public abstract string WidgetId { get; } #The unique name events are addressed to.