[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
The emit service is a simple publish-subscribe mechanism for sending events out of the runtime to
emitted event listeners that registered interest in the same or default channel that an event was
emitted to.
The following tables list the members exposed by the EmitService type.
Public Methods
Name | Description | |
---|---|---|
![]() | AddListener | Add emitted event listener for the specified channel, or the default channel if the channel value is null.
The listener will be invoked when an event is emitted on the subscribed channel. Listeners subscribed to the
default channel are invoked for all emitted events regardless of what channel the event is emitted onto.
|
![]() | ClearListeners | Removes all listeners for emitted events. |
![]() | EmitEvent | Emit an event to the specified channel. All listeners listening to the exact same channel and
all listeners listening to the default channel are handed the event emitted.
|