DataSource.NET
AddConnectionListener Method (listener)
NamespacesCaplin.DataSourceIDataSourceAddConnectionListener(IConnectionListener)
Adds a connection listener that receives status events about the state of the DataSource application's connection to other peers.
Declaration Syntax
C#Visual BasicVisual C++
void AddConnectionListener(
	IConnectionListener listener
)
Sub AddConnectionListener ( _
	listener As IConnectionListener _
)
void AddConnectionListener(
	IConnectionListener^ listener
)
Parameters
listener (IConnectionListener)
The IConnectionListener to be registered
Remarks

Once registered, the IConnectionListener will receive event updates whenever the connection status has changed (for details see the description of IConnectionListener).

You can register more than one IConnectionListener with DataSource. Each registered IConnectionListener will receive events for changes to all peers' connection statuses.

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.2.6.2123 (6.2.6.2123)