Session Connection Settings
The Sessions Scheduler exposes the SessionConnectionSettings class to define the connection related parameters, required to establish iLink 3 Session successfully. The SessionConnectionSettings class is targeted to provide users with a handy way of defining connection-related parameters for sessions appropriately.
Defining Connection Settings for Sessions
When a session is connected, at least hostname and TCP port of the counterparty must be specified. For this reason, all constructors of the SessionConnectionSettings class require counterparty hostname and TCP port parameters.
For example:
Multiple Counterpartiess
Sometimes a session's counterparty may be out of service, causing session logon failure. CME systems provide secondary servers, which can be connected while primary servers are down. To support such cases, SessionConnectionSettings class exposes the AddCounterparty member, which allows defining secondary servers, that will be connected in case of the connection failure to the primary server. Also, Scheduler remembers last good connection settings (counterparty). Therefore, since the next time connection must be established, it will use the last good configuration.
For example:
var connectionSettings = new SessionConnectionSettings("primaryGateway.com", 9998);
connectionSettings.AddCounterparty("backupGateway.com", 9999);
When the Scheduler can not connect to the primary host, it will try to connect to the secondary host.