BaseServerSettings
Settings.
Implements: IPersistable
Constructors
protected BaseServerSettings()
baseServerSettings = BaseServerSettings()
Initializes a new instance of the BaseServerSettings.
Properties
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).
public bool ConvertToLatin { get; set; }
value = baseServerSettings.ConvertToLatin
baseServerSettings.ConvertToLatin = value
Convert all non-latin text messages to latin.
public TimeSpan DeadSessionCleanupInterval { get; set; }
value = baseServerSettings.DeadSessionCleanupInterval
baseServerSettings.DeadSessionCleanupInterval = value
Keep subscriptions on disconnect.
public bool KeepSubscriptionsOnDisconnect { get; set; }
value = baseServerSettings.KeepSubscriptionsOnDisconnect
baseServerSettings.KeepSubscriptionsOnDisconnect = value
Keep subscriptions on disconnect.
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.
public TimeSpan LoginRateLimitWindow { get; set; }
value = baseServerSettings.LoginRateLimitWindow
baseServerSettings.LoginRateLimitWindow = value
Sliding time window for LoginRateLimitMaxAttempts. Default is 1 minute.
public int MaxErrorCount { get; set; }
value = baseServerSettings.MaxErrorCount
baseServerSettings.MaxErrorCount = value
Max possible ErrorCount.
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.
public int MaxTotalErrorCount { get; set; }
value = baseServerSettings.MaxTotalErrorCount
baseServerSettings.MaxTotalErrorCount = value
Max possible TotalErrorCount.
public TimeSpan QuotesInterval { get; set; }
value = baseServerSettings.QuotesInterval
baseServerSettings.QuotesInterval = value
Quotes updating interval.
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.
public string SslCertificate { get; set; }
value = baseServerSettings.SslCertificate
baseServerSettings.SslCertificate = value
Path to the PFX/PKCS#12 certificate file. Required when SslEnabled is .
public string SslCertificatePassword { get; set; }
value = baseServerSettings.SslCertificatePassword
baseServerSettings.SslCertificatePassword = value
Password for the certificate file specified in SslCertificate.
public bool SslEnabled { get; set; }
value = baseServerSettings.SslEnabled
baseServerSettings.SslEnabled = value
Enable TLS/SSL encryption for client connections. Default is (plain-text connections).
Methods
public virtual void Load(SettingsStorage storage)
baseServerSettings.Load(storage)
Load settings.
- storage
- SettingsStorage
public X509Certificate2 LoadSslCertificate()
result = baseServerSettings.LoadSslCertificate()
Loads the X.509 certificate from SslCertificate path.
Returns: Loaded certificate.
public virtual void Save(SettingsStorage storage)
baseServerSettings.Save(storage)
Save settings.
- storage
- SettingsStorage