SubscribeConnection¶
-
ISubscription IController.SubscribeConnection(ConnectionHandler handler)¶
Subscribes a callback to be executed when the connection to this controller is restored.
- Parameters
handler – Delegate to be invoked when connection is restored.
- 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 restored.