Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IEvent

An interface for Events, which are part of the Command design pattern. Events allows to send asynchronious notifications to multiple subscribed listeners.

see

IEventListener

Hierarchy

Implemented by

Index

Methods

addListener

getListeners

getName

  • getName(): string

notify

  • notify(correlationId: string, args: Parameters): void
  • Notifies the component about occured event.

    Parameters

    • correlationId: string

      (optional) transaction id to trace execution through call chain.

    • args: Parameters

      notification arguments.

    Returns void

removeListener

  • Removes a listener, so that it no longer receives notifications for this event.

    Parameters

    Returns void

Generated using TypeDoc