BaseServerSettings

StockSharp.Server.Core

Settings.

Implements: IPersistable

Constructors

BaseServerSettings
protected BaseServerSettings()
baseServerSettings = BaseServerSettings()

Initializes a new instance of the BaseServerSettings.

Properties

AllowMultiSessionPerLogin
public bool AllowMultiSessionPerLogin { get; set; }
value = baseServerSettings.AllowMultiSessionPerLogin
baseServerSettings.AllowMultiSessionPerLogin = value

Allow more than one concurrent session under the same login / SenderCompId — "multi-device" mode (laptop + phone on one account). Default is : a second connection joins as an independent session, the first is left alone. When , the legacy single-session-per-login behaviour is restored — the new connection evicts the existing one (WsGate / FixServer) or is itself rejected (SbeServer).

ConvertToLatin
public bool ConvertToLatin { get; set; }
value = baseServerSettings.ConvertToLatin
baseServerSettings.ConvertToLatin = value

Convert all non-latin text messages to latin.

DeadSessionCleanupInterval
public TimeSpan DeadSessionCleanupInterval { get; set; }
value = baseServerSettings.DeadSessionCleanupInterval
baseServerSettings.DeadSessionCleanupInterval = value

Keep subscriptions on disconnect.

KeepSubscriptionsOnDisconnect
public bool KeepSubscriptionsOnDisconnect { get; set; }
value = baseServerSettings.KeepSubscriptionsOnDisconnect
baseServerSettings.KeepSubscriptionsOnDisconnect = value

Keep subscriptions on disconnect.

LoginRateLimitMaxAttempts
public int LoginRateLimitMaxAttempts { get; set; }
value = baseServerSettings.LoginRateLimitMaxAttempts
baseServerSettings.LoginRateLimitMaxAttempts = value

Maximum number of failed login attempts from a single IP address within LoginRateLimitWindow before new attempts are rejected. Default is 5. Zero means no rate limiting.

LoginRateLimitWindow
public TimeSpan LoginRateLimitWindow { get; set; }
value = baseServerSettings.LoginRateLimitWindow
baseServerSettings.LoginRateLimitWindow = value

Sliding time window for LoginRateLimitMaxAttempts. Default is 1 minute.

MaxErrorCount
public int MaxErrorCount { get; set; }
value = baseServerSettings.MaxErrorCount
baseServerSettings.MaxErrorCount = value

Max possible ErrorCount.

MaxPendingMessages
public int MaxPendingMessages { get; set; }
value = baseServerSettings.MaxPendingMessages
baseServerSettings.MaxPendingMessages = value

Maximum number of pending outgoing messages per client session. When exceeded, the client is disconnected (backpressure). Default is 10000. Zero means unlimited.

MaxTotalErrorCount
public int MaxTotalErrorCount { get; set; }
value = baseServerSettings.MaxTotalErrorCount
baseServerSettings.MaxTotalErrorCount = value

Max possible TotalErrorCount.

QuotesInterval
public TimeSpan QuotesInterval { get; set; }
value = baseServerSettings.QuotesInterval
baseServerSettings.QuotesInterval = value

Quotes updating interval.

SendTimeout
public TimeSpan SendTimeout { get; set; }
value = baseServerSettings.SendTimeout
baseServerSettings.SendTimeout = value

Timeout for sending a single message to a client. If exceeded, the client is considered too slow and disconnected. Default is 30 seconds. Zero means no timeout.

SslCertificate
public string SslCertificate { get; set; }
value = baseServerSettings.SslCertificate
baseServerSettings.SslCertificate = value

Path to the PFX/PKCS#12 certificate file. Required when SslEnabled is .

SslCertificatePassword
public string SslCertificatePassword { get; set; }
value = baseServerSettings.SslCertificatePassword
baseServerSettings.SslCertificatePassword = value

Password for the certificate file specified in SslCertificate.

SslEnabled
public bool SslEnabled { get; set; }
value = baseServerSettings.SslEnabled
baseServerSettings.SslEnabled = value

Enable TLS/SSL encryption for client connections. Default is (plain-text connections).

Methods

Load
public virtual void Load(SettingsStorage storage)
baseServerSettings.Load(storage)

Load settings.

storage
SettingsStorage
LoadSslCertificate
public X509Certificate2 LoadSslCertificate()
result = baseServerSettings.LoadSslCertificate()

Loads the X.509 certificate from SslCertificate path.

Returns: Loaded certificate.

Save
public virtual void Save(SettingsStorage storage)
baseServerSettings.Save(storage)

Save settings.

storage
SettingsStorage