OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
Configuring the Handler

Inner Contents

 Configuration File Examples (XML, JSON, and INI-based)

Detailed Description

There are many settings that control the behavior of the Handler.

All configuration settings, default values, and configuration keys can be found in the OnixS::ICE::BOE::SessionSettings class declaration.

The default settings of the Handler can be changed using the OnixS::ICE::BOE::SessionSettings class or a configuration file (XML, JSON, or INI-based).

To specify a configuration for the Handler, one can use either the OnixS::ICE::BOE::SessionSettings class interface to set it programmatically or use the OnixS::ICE::BOE::SessionSettings::load(const std::string & configFile) method to load the configuration from a file.

Example

Configure the Handler using the OnixS::ICE::BOE::SessionSettings class:

using namespace OnixS::ICE::BOE;
SessionSettings settings;
settings.licenseStore("../../license")
.userId("SessionId")
.rawData("rawData")
.ipSessionToken("ipSessionToken");
Session session(SessionType::BUS, settings, nullptr);

Configure the Handler using an XML-based file:

using namespace OnixS::ICE::BOE;
SessionSettings settings;
settings.load("IceBoeHandlerConfig.xml");
Session session(SessionType::BUS, settings, nullptr);