Interface IPublisher<Evt>

Publishers provide the interface between the underlying event system and the bus. This defines the interactions the bus has with the publisher.

Type Parameters

Hierarchy

  • IPublisher

Implemented by

Properties

Define the role of the publisher within the application. Set via the using class

Methods

  • Listen to the bus asynchronously but without triggering event acknowledgement. Will only be called for events processed by this node.

    Parameters

    • handlerFn: ((event: Evt) => void)
        • (event: Evt): void
        • Parameters

          • event: Evt

          Returns void

    Returns string

  • Subscribe to the bus. Should only be called ONCE by the relevant bus as will trigger acknowledgements.

    Parameters

    • handlerFn: ((event: Evt) => void)
        • (event: Evt): void
        • Parameters

          • event: Evt

          Returns void

    Returns string

Generated using TypeDoc