Creates a new event and assigns its name.
the name of the event that is to be created.
Adds a listener to receive notifications when this event is fired.
the listener reference to add.
Gets all listeners registred in this event.
a list of listeners.
Gets the name of the event.
the name of this event.
Fires this event and notifies all registred listeners.
(optional) transaction id to trace execution through call chain.
the parameters to raise this event with.
Removes a listener, so that it no longer receives notifications for this event.
the listener reference to remove.
Generated using TypeDoc
Concrete implementation of IEvent interface. It allows to send asynchronous notifications to multiple subscribed listeners.
IEvent
IEventListener
Example
let event = new Event("my_event"); event.addListener(myListener); event.notify("123", Parameters.fromTuples( "param1", "ABC", "param2", 123 ));