Session Connection Settings
The Sessions Scheduler service exposes the SessionConnectionSettings class to configure the FIX Connection-related parameters.
The InitiatorConnectionSettings and AcceptorConnectionSettings classes simplify the configuration for sessions-acceptors and sessions-initiators, respectively.
Acceptors
Sessions-acceptors do not require additional connectivity-related parameters, so use the default AcceptorConnectionSettings constructor.
For example:
scheduler.Register(session, schedule, new AcceptorConnectionSettings());
Initiators
The InitiatorConnectionSettings constructors accept initiator-specific connectivity-related parameters (the counterparty host, port, heartbeat interval, custom Logon message, etc.).
For example:
scheduler.Register(session, schedule, new InitiatorConnectionSettings("localhost", 4500));
Multiple Counterparties
To specify multiple counterparties, use the Counterparties property.
For example:
var connectionSettings = new InitiatorConnectionSettings();
connectionSettings.Counterparties.Add(new CounterpartySettings("primaryGateway.com", 9998));
connectionSettings.Counterparties.Add(new CounterpartySettings("backupGateway.com", 9999));
When the Scheduler can not connect to the primary host, it will try to connect to the secondary host.