Class
ImmediateDispatcher
ConsoleMonster.Live
Applies events to one target immediately on the calling thread. Used when a widget is updated without a live session (building a report, tests). Not thread-safe, by design: without a session there is no render thread.
Inheritance
- object
- ImmediateDispatcher
Constructors
public ImmediateDispatcher(ILiveTarget target) #Creates a dispatcher for one target.
Parameters
- target ConsoleMonster.Live.ILiveTarget
- The target.
Methods
public void Post(LiveEvent liveEvent) #Posts an event.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public void Update(string widgetId, WidgetUpdate update) #Applies one presence-aware update, rejecting unsupported fields before any event is published.
Parameters
- widgetId string
- The target identifier.
- update ConsoleMonster.Live.WidgetUpdate
- The explicitly supplied fields.