Subscribe

virtual PSubscription IEvent::Subscribe(EventOccurredHandler handler) = 0

Subscribes a callback to be executed when this event occurs.

Parameters

handler – Function to be called when the event occurs.

Returns

PSubscription – An ISubscription for the callback.

Throws