DataSource.NET
AddConnectionListener Method (listener)
NamespacesCaplin.DataSourceDataSourceAddConnectionListener(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++
public void AddConnectionListener(
	IConnectionListener listener
)
Public Sub AddConnectionListener ( _
	listener As IConnectionListener _
)
public:
virtual void AddConnectionListener(
	IConnectionListener^ listener
) sealed
Parameters
listener (IConnectionListener)
The IConnectionListener to be registered
Remarks

Once registered, the IConnectionListener will receive event updates whenever the connect 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.0.12.814 (6.0.12.0814)