This abstract object encapsulates the connection to a Vision Device
More...
Inherited by VisionSDK.VisionDeviceConnectionThrift.
This abstract object encapsulates the connection to a Vision Device
VisionDeviceConnectionDetails connectionDetails = new VisionDeviceConnectionDetailsNetwork("127.0.0.1", 10001);
VisionDeviceConnection visionDeviceConnection = new VisionDeviceConnection( connectionDetails );
Constructor
- Parameters
-
| connectionDetails | The connection details |
| eventsScheduler | The connection scheduler that will execute the events on the right dispatcher |
| virtual void VisionSDK.VisionDeviceConnection.Connect |
( |
| ) |
|
|
virtual |
Override this method to perform the connection
| virtual void VisionSDK.VisionDeviceConnection.Disconnect |
( |
| ) |
|
|
virtual |
Override this method to perform the disconnection
| void VisionSDK.VisionDeviceConnection.NotiftyConnectionLost |
( |
| ) |
|
This method is used by an external object to notify that the connection is lost
| virtual void VisionSDK.VisionDeviceConnection.OnDidConnect |
( |
VisionEventArgs |
e | ) |
|
|
protectedvirtual |
This method fires the OnDidConnect Event with the specified VisionEventArgs and,
if StopTryingToReconnect was enabled, will stop the ConnectionRestorer from trying to reconnect
- Parameters
-
| virtual void VisionSDK.VisionDeviceConnection.OnDidDisconnect |
( |
VisionEventArgs |
e | ) |
|
|
protectedvirtual |
This method fires the OnDidDisconnect Event with the specified VisionEventArgs
- Parameters
-
| virtual void VisionSDK.VisionDeviceConnection.OnDidFailToConnect |
( |
VisionEventArgs |
e | ) |
|
|
protectedvirtual |
This method fires the OnDidFailToConnect Event with the specified VisionEventArgs
- Parameters
-
| virtual void VisionSDK.VisionDeviceConnection.OnDidFailToDisconnect |
( |
VisionEventArgs |
e | ) |
|
|
protectedvirtual |
This method fires the OnDidFailToDisconnect Event with the specified VisionEventArgs
- Parameters
-
| virtual void VisionSDK.VisionDeviceConnection.OnWillTryToConnect |
( |
VisionEventArgs |
e | ) |
|
|
protectedvirtual |
This method fires the OnWillTryToConnect Event with the specified VisionEventArgs
- Parameters
-
| Boolean VisionSDK.VisionDeviceConnection.connected = false |
|
protected |
| Boolean VisionSDK.VisionDeviceConnection.connectionLost = false |
|
protected |
| Boolean VisionSDK.VisionDeviceConnection.shouldAutoReconnect = true |
|
protected |
Stores the value of ShouldAutoReconnect
The object that tries to reconnect if the connection is lost and ShouldAutoReconnect is enabled
| Boolean VisionSDK.VisionDeviceConnection.IsConnected |
|
get |
True if currently successsfully connected to a Vision Device
| Boolean VisionSDK.VisionDeviceConnection.IsConnectionLost |
|
get |
Keep trace if the connection is lost
| Boolean VisionSDK.VisionDeviceConnection.ShouldAutoReconnect |
|
getset |
Specify if the connection should automatically try to reconnect if the connection is lost
| EventHandler<VisionEventArgs> VisionSDK.VisionDeviceConnection.DidConnectHandler |
Fired when a successful connection occurs
| EventHandler<VisionEventArgs> VisionSDK.VisionDeviceConnection.DidDisconnectHandler |
Fired when a successful disconnection occurs
| EventHandler<VisionEventArgs> VisionSDK.VisionDeviceConnection.DidFailToConnectHandler |
Fired when an unsuccessful connection attempt occurs
| EventHandler<VisionEventArgs> VisionSDK.VisionDeviceConnection.DidFailToDisconnectHandler |
Fired when an unsuccessful disconnection attempt occurs
| EventHandler<VisionEventArgs> VisionSDK.VisionDeviceConnection.WillTryToConnectHandler |
Fired when a connection attempt occurs