Session Connection Settings
The Sessions Scheduler service exposes the Session
The Initiator
Acceptors
Sessions-acceptors do not require additional connectivity-related parameters, so use the default Acceptor
For example:
scheduler.Register(session, schedule, new AcceptorConnectionSettings());
Initiators
The Initiator
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.