Skip to content
ConsoleMonster
Class

ImmediateDispatcher

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Modifiers
sealed

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 required
The target.

Methods

public void Post(LiveEvent liveEvent) #

Posts an event.

Parameters

liveEvent ConsoleMonster.Live.LiveEvent required
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 required
The target identifier.
update ConsoleMonster.Live.WidgetUpdate required
The explicitly supplied fields.