Table of Contents

Class ReConnectionSettings

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Connection tracking settings IMessageAdapter with a server.

[Display(ResourceType = typeof(LocalizedStrings), Name = "ReConnectionSettings", Description = "ReConnectionDesc")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public class ReConnectionSettings : IPersistable
Inheritance
ReConnectionSettings
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

ReConnectionSettings()

Initializes a new instance of the ReConnectionSettings.

public ReConnectionSettings()

Properties

AttemptCount

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.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Initially", Description = "InitiallyConnect", GroupName = "Connection")]
public int AttemptCount { get; set; }

Property Value

int

Interval

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

[Display(ResourceType = typeof(LocalizedStrings), Name = "Interval", Description = "IntervalToConnect", GroupName = "Connection")]
public TimeSpan Interval { get; set; }

Property Value

TimeSpan

ReAttemptCount

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.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Reconnection", Description = "ReconnectAttempts", GroupName = "Connection")]
public int ReAttemptCount { get; set; }

Property Value

int

TimeOutInterval

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

[Display(ResourceType = typeof(LocalizedStrings), Name = "TimeOut", Description = "ConnectDisconnectTimeout", GroupName = "Connection")]
public TimeSpan TimeOutInterval { get; set; }

Property Value

TimeSpan

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.

[Display(ResourceType = typeof(LocalizedStrings), Name = "WorkSchedule", Description = "ReConnectWorkSchedule", GroupName = "Connection")]
public WorkingTime WorkingTime { get; set; }

Property Value

WorkingTime

Methods

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.