ReConnectionSettings

StockSharp.Messages

Connection tracking settings IMessageAdapter with a server.

Implements: IPersistable

Constructors

ReConnectionSettings
public ReConnectionSettings()
reConnectionSettings = ReConnectionSettings()

Initializes a new instance of the ReConnectionSettings.

Properties

AttemptCount
public int AttemptCount { get; set; }
value = reConnectionSettings.AttemptCount
reConnectionSettings.AttemptCount = value

The number of attempts to establish the initial connection, if it has not been established (timeout, network failure, etc.). The default value is 0. To establish infinite number uses -1.

Interval
public TimeSpan Interval { get; set; }
value = reConnectionSettings.Interval
reConnectionSettings.Interval = value

The interval at which attempts will establish a connection. The default value is 10 seconds.

ReAttemptCount
public int ReAttemptCount { get; set; }
value = reConnectionSettings.ReAttemptCount
reConnectionSettings.ReAttemptCount = value

The number of attempts to reconnect if the connection was lost during the operation. The default value is 100. To establish infinite number uses -1.

TimeOutInterval
public TimeSpan TimeOutInterval { get; set; }
value = reConnectionSettings.TimeOutInterval
reConnectionSettings.TimeOutInterval = value

Timeout successful connection / disconnection. If the value is Zero, the monitoring is performed. The default value is 30 seconds.

WorkingTime
public WorkingTime WorkingTime { get; set; }
value = reConnectionSettings.WorkingTime
reConnectionSettings.WorkingTime = value

Schedule, during which it is necessary to make the connection. For example, there is no need to track connection when trading on the exchange finished.

Methods

Load
public void Load(SettingsStorage storage)
reConnectionSettings.Load(storage)

Load settings.

storage
Settings storage.
Save
public void Save(SettingsStorage storage)
reConnectionSettings.Save(storage)

Save settings.

storage
Settings storage.