ReadonlylogA string prefix for all log statements made by this target.
Dispatches an event.
Returns true if the event host has any listeners for the given type.
Adds an event handler for the given typed event.
The key representing the event type to listen for.
A callback to invoke when the event with the given type is dispatched.
Optionaloptions: SignalOptionsOptions for changing listening behavior.
Returns a method, when invoked, removes the handler.
An object that may dispatch events and have handlers for those events. Similar to the DOM's
EventTarget, this is a basic event system based on event naming.Some of the advantages of EventHost over EventTarget:
EventHost supports concurrent modification, that is, handlers may be added or removed during the execution of another handler.