Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Thread-safe event dispatcher that owns a set of T:InnoEngine.Events.EventHub instances and routes events to hubs in descending P:InnoEngine.Events.EventHub.order.

API: scripting
Inherits: object
Project: Inno.Core.Events
Scope: Runtime

public sealed class InnoEngine.Events.EventDispatcher
Kind Element Description
Constructors EventDispatcher.Constructor Creates a dispatcher with bounded pending work and a finite per-flush budget.
Events EventDispatcher.dispatched Observes an event after its ordered hub dispatch has completed, including globally consumed events.
Methods EventDispatcher.CreateHub Creates a new hub attached to this dispatcher.
Methods EventDispatcher.DiscardPending Releases queued references at a quiescent owner safe point without invoking retired handlers.
Methods EventDispatcher.Emit Immediately dispatches an event to all valid hubs in priority order.
Methods EventDispatcher.Enqueue Enqueues an event for later processing via M:InnoEngine.Events.EventDispatcher.Flush.
Methods EventDispatcher.Flush Dispatches a bounded prefix of pending events; recursively enqueued work waits for a later flush.
Methods EventDispatcher.TryEnqueue Attempts to enqueue without silently dropping a critical event on overload.
Properties EventDispatcher.pendingCount Gets the number of pending events, including producer reservations.