ReConnectionSettings

StockSharp.Messages

Connection tracking settings IMessageAdapter with a server.

实现: IPersistable

构造函数

ReConnectionSettings()

Initializes a new instance of the ReConnectionSettings.

属性

AttemptCount : int

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 : TimeSpan

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

ReAttemptCount : int

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 : TimeSpan

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

WorkingTime : WorkingTime

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.

方法

Load(SettingsStorage)

Load settings.

storage
Settings storage.
Save(SettingsStorage)

Save settings.

storage
Settings storage.