SubscribeConnectionLost¶
-
ISubscription IController.SubscribeConnectionLost(ConnectionLostHandler handler)¶
Subscribes a callback to be executed when the connection to this controller is lost.
- Parameters
handler – Delegate to be invoked when connection is lost.
- Returns
ISubscription – An ISubscription for the callback.
- Throws
NullArgumentException– Null reference was passed.CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.IncompatibleException– Incompatible firmware version loaded.System.ObjectDisposedException– Object is disposed.
- Remarks
It is not executed when the connection to a sub-controller of this controller is lost.