BaseServerSettings

StockSharp.Server.Core

设置。

实现: IAsyncPersistable

构造函数

BaseServerSettings
protected BaseServerSettings()
baseServerSettings = BaseServerSettings()

初始化了 & ##BaseServerSettings+#的新实例.

属性

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

将所有非线性文本信件转换为 latin 。

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

保持订阅断开。

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

保持订阅断开。

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

在拒绝新尝试之前, LoginRateLimitWindow 内单个IP地址中登入失败尝试的最大次数。 默认为 5. 0 表示不限制速率 。

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

滑行时间窗口为%\ LoginRateLimitMaxAttempts\\\\ 默认为 1 分钟 。

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

每个客户端会话中待发信件的最大数量。超过时,客户端会断开(后压),默认为1000. 0表示无限.

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

Max possible TotalErrorCount.

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

Maximum time a freshly connected client may stay unauthenticated before the server drops it, bounding what an unauthenticated client can hold - connection slots, slowloris. The deadline runs from connect time. Zero disables the check.

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

引文为更新间隔.

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

发送单个信件给客户端的超时。 如果超过, 客户端被认为太慢且断开。 默认为 30 秒。 0 表示没有超时 。

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

PFX/%%PKCS#12%%%% 证书文件的路径。 当%SslEnabled%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

SslCertificate 指定的证书文件密码 。

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

启用 TLS/ SSL 加密客户端连接。 默认是( 平面文本连接 ) 。

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

Full path of a readable dump of the sessions and their subscriptions, rewritten as they change. Empty, the default, writes nothing.

方法

LoadAsync
public virtual Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseServerSettings.LoadAsync(storage, cancellationToken)

Load settings.

storage
SettingsStorage
cancellationToken
CancellationToken

返回值: Task

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

从 SslCertificate 路径装入 X.509 证书 。

返回值: 已装入证书 。

SaveAsync
public virtual Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseServerSettings.SaveAsync(storage, cancellationToken)

Save settings.

storage
SettingsStorage
cancellationToken
CancellationToken

返回值: Task