This interface defines the main interface of DataSoure.NET. In order to obtain an
instance of this interface, you must create an instance of DataSource.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public interface IDataSource
Public Interface IDataSource
public interface class IDataSource
Members
All Members | Methods | Properties | |||
Icon | Member | Description |
---|---|---|
AddChannelListener(INamespace, IChannelListener) |
Registers an IChannelListener for the specified namespace.
| |
AddConnectionListener(IConnectionListener) |
Adds a connection listener that receives status events about the state of
the DataSource application's connection to other peers.
| |
CreateActivePublisher(INamespace, IDataProvider) |
Creates an active publisher for the specified namespace.
| |
CreateActiveSubscription(String, ISubscriptionListener) |
Creates an active subscription to an individual subject.
| |
CreateBroadcastPublisher(INamespace) |
Creates a broadcast publisher for the specified namespace.
| |
CreateBroadcastSubscription(INamespace, ISubscriptionListener) |
Creates a subscription to many subjects. The scope of the subscription is defined by a namespace.
| |
CreateCompatibilityPublisher(INamespace, IDataProvider) |
Creates a compatibility publisher for the specified namespace.
| |
Logger |
Gets or sets the logger used by DataSource.NET
| |
Peers |
Gets a list of all the configured DataSource peers.
| |
SetStatusDown()()() |
Sets the status of this DataSource application to down.
| |
SetStatusUp()()() |
Sets the status of this DataSource application to up.
| |
Start()()() |
Starts this DataSource.
| |
Stop()()() |
Stops this DataSource.
|
Remarks
This interface is provided for ease of unit testing.