Synced
EventDispatcher
Section titled “EventDispatcher”
- Thread-safe event dispatcher that owns a set of
T:Inno.Core.Events.EventHubinstances and routes events to hubs in descendingP:Inno.Core.Events.EventHub.order.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Core.Events
Declaration
Section titled “Declaration”public sealed class Inno.Core.Events.EventDispatcherMembers
Section titled “Members”| 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:Inno.Core.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. |