DataSource.NET
DataSource Class
NamespacesCaplin.DataSourceDataSource
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 BasicVisual C++
public sealed class DataSource : IDataSource
Public NotInheritable Class DataSource _
	Implements IDataSource
public ref class DataSource sealed : IDataSource
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
DataSource(String)
Initializes a new instance of the DataSource class that logs events to a configurable log file.

DataSource(String, array<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.

DataSource(String, array<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.

AddGenericChannelListener(INamespace, IChannelListener)
Registers an IChannelListener for the specified namespace. Use for Generic Messages

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)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FieldManager
Provides access to the Field Manager associated with this DataSource.

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.
(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.)
MonitoringServer
Gets the monitoring server for this DataSource.

Peers
Gets a list of all the configured DataSource peers.

RemoveConnectionListener(IConnectionListener)
Removes a previously registered connection listener.

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()()()
Returns a String that represents the current Object.
(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.

If your application is running within the Deployment Framework then you should construct this object using a constructor which takes an arguments parameter: The Deployment Framework may call into your application to obtain configuration properties appropriate for the environment.

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

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