ReplayEvent keeps a buffer of bufferSize events that are emitted for each new subscriber.
Rest
Register an event handler
to register
Invoke the event and notify handlers
Construct an object to serve as the publicApi of this event. This makes it so an event can be used as "pre-bound" function, and also prevents "invoke" from being called externally
Unregister an event handler
to remove
ReplayEvent keeps a buffer of bufferSize events that are emitted for each new subscriber.