dxFeed .Net API  7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
com.dxfeed.native.NativeTools Class Reference

Static Public Member Functions

static void InitializeLogging (string fileName, bool overwrite, bool verbose, bool logDataTransfer=false)
 Initializes the internal logger. More...
 
static void LoadConfigFromString (string config)
 Initializes the C-API configuration and loads a config (in TOML format) from a string More...
 
static void LoadConfigFromFile (string fileName)
 Initializes the C-API configuration and loads a config (in TOML format) from a string For the successful application of the configuration, this function must be called before creating any connection More...
 

Member Function Documentation

◆ InitializeLogging()

static void com.dxfeed.native.NativeTools.InitializeLogging ( string  fileName,
bool  overwrite,
bool  verbose,
bool  logDataTransfer = false 
)
inlinestatic

Initializes the internal logger.

Various actions and events, including the errors, are being logged throughout the library. They may be stored into the file.

Parameters
fileNameA full path to the file where the log is to be stored
overwriteA flag defining the file open mode; if it's true then the log file will be rewritten
verboseA flag defining the logging mode; if it's true then the verbose logging will be enabled
logDataTransferA flag defining the logging mode; if it's nonzero then the data transfer (portions of received and sent data) logging will be enabled

◆ LoadConfigFromFile()

static void com.dxfeed.native.NativeTools.LoadConfigFromFile ( string  fileName)
inlinestatic

Initializes the C-API configuration and loads a config (in TOML format) from a string For the successful application of the configuration, this function must be called before creating any connection

The config file sample: Sample The TOML format specification: https://toml.io/en/v1.0.0-rc.2

Example:

NativeTools.LoadConfigFromFile("./dxfeed-api-config.toml");
Parameters
fileNameThe config (in TOML format) file name

◆ LoadConfigFromString()

static void com.dxfeed.native.NativeTools.LoadConfigFromString ( string  config)
inlinestatic

Initializes the C-API configuration and loads a config (in TOML format) from a string

For the successful application of the configuration, this function must be called before creating any connection

The config file sample: Sample

The TOML format specification: https://toml.io/en/v1.0.0-rc.2

Example #1

NativeTools.LoadConfigFromString(@"
network.heartbeatPeriod = 10
network.heartbeatTimeout = 120
");

Example #2

NativeTools.LoadConfigFromString(@"
[network]
heartbeatPeriod = 10
heartbeatTimeout = 120
");
Parameters
configThe config (in TOML format) string

The documentation for this class was generated from the following file: