Subscribe¶
-
ISubscription IEvent.Subscribe(EventOccurredHandler handler)¶
Subscribes a callback to be executed when this event occurs.
- Parameters
handler – Delegate to be invoked when the event occurs.
- Returns
ISubscription – An ISubscription for the callback.
- Throws
NullArgumentException
– Null reference was passed.OutOfResourcesException
– No resources available to subscribe callback.CommunicationErrorException
– Protocol error.ConnectionLostException
– Connection to controller lost.RebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.