DataSource.NET
DataSource Constructor (configFile, logger)
NamespacesCaplin.DataSourceDataSourceDataSource(String, ILogger)
Initializes a new instance of the DataSource class that logs events to an implementation of the ILogger class.
Declaration Syntax
C#Visual BasicVisual C++
public DataSource(
	string configFile,
	ILogger logger
)
Public Sub New ( _
	configFile As String, _
	logger As ILogger _
)
public:
DataSource(
	String^ configFile, 
	ILogger^ logger
)
Parameters
configFile (String)
The configuration file for this DataSource application.
logger (ILogger)
An implementation of ILogger to which DataSource events will be logged.
Remarks

Only a single instance of DataSource can be created.

The configuration file defines the configuration of the DataSource library. Its contents must be in the standard DataSource "conf" file format; see Configuration.

If you want the DataSource to log events to a standard (configurable) DataSource log file, use the DataSource(configFile) constructor instead.

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