This is the main class in Datasource.NET. Your application must create an instance of
this class to use the functionality provided by DataSource
Declaration Syntax
C# | Visual Basic | Visual C++ |
public sealed class DataSource : IDataSource
Public NotInheritable Class DataSource _ Implements IDataSource
public ref class DataSource sealed : IDataSource
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
DataSource(String) |
Initializes a new instance of the DataSource class that logs events to a configurable log file.
| |
DataSource(String, ILogger) |
Initializes a new instance of the DataSource class that logs events to an implementation of the
ILogger class.
| |
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 a multiple request single discard 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 multiple request and multiple discard publisher for the specified namespace.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
Logger |
Gets or sets the logger used by DataSource.NET
| |
MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.
| |
ToString()()() | (Inherited from Object.) |
Remarks
Your DataSource application must create just a single instance of this class. An attempt to create a second instance within the application will result in an Exception being raised.
Note:The current (execution) directory must contain a subdirectory called var. If this subdirectory does not exist when the DataSource is constructed DataSource.NET will exit.
Inheritance Hierarchy
Object | |
DataSource |