Class EventBus

Provide handling for an event based system

Hierarchy

  • EventBus

Constructors

Properties

_distributor: Distributor<IEvent<unknown>>
_explorer: Explorer
_handlerMap: Map<string, IEventHandler<IEvent<unknown>>[]>
_observableFactory: ObservableFactory
_sagaManager: SagaManager
commandBus: CommandBus
eventSource: IEventSource
pubSub: IPubSub

Methods

  • Listen to events post-processing, including those processed locally

    Parameters

    • handlerFn: ((event: IEvent<unknown>) => void)
        • (event: IEvent<unknown>): void
        • Parameters

          Returns void

    Returns string

Generated using TypeDoc