Provide hooks for the TEvents; a type-map of events to handlers.
TEvents
Knows how to track handlers for different events and allow the consumer to trigger that event, causing each handler to run.
Add the handler to the event.
handler
event
An ID which can be passed to remove in lieu of passing the handler itself.
Protected
Lazy-initialize the ReflectMap for the event.
Add a handler from the event by either providing it or its ID (returned from this.Add).
Trigger the event, by running each of its handlers on the provided args.
args
Provide hooks for the
TEvents
; a type-map of events to handlers.Knows how to track handlers for different events and allow the consumer to trigger that event, causing each handler to run.