BaseServerSettings

StockSharp.Server.Core

Settings.

Implements: IPersistable

Constructors

BaseServerSettings()

Initializes a new instance of the BaseServerSettings.

Properties

AllowMultiSessionPerLogin : bool

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

Convert all non-latin text messages to latin.

DeadSessionCleanupInterval : TimeSpan

Keep subscriptions on disconnect.

KeepSubscriptionsOnDisconnect : bool

Keep subscriptions on disconnect.

LoginRateLimitMaxAttempts : int

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

Sliding time window for LoginRateLimitMaxAttempts. Default is 1 minute.

MaxErrorCount : int

Max possible ErrorCount.

MaxPendingMessages : int

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

MaxTotalErrorCount : int

Max possible TotalErrorCount.

QuotesInterval : TimeSpan

Quotes updating interval.

SendTimeout : TimeSpan

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

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

SslCertificatePassword : string

Password for the certificate file specified in SslCertificate.

SslEnabled : bool

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

Methods

Load(SettingsStorage)

Load settings.

storage
SettingsStorage
LoadSslCertificate() : X509Certificate2

Loads the X.509 certificate from SslCertificate path.

Returns: Loaded certificate.

Save(SettingsStorage)

Save settings.

storage
SettingsStorage