BaseServerSettings

StockSharp.Server.Core

設定。

実装: IAsyncPersistable

コンストラクター

BaseServerSettings
protected BaseServerSettings()
baseServerSettings = BaseServerSettings()

BaseServerSettings の新規インスタンスを初期化します。

プロパティ

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

テキストメッセージ以外のテキストメッセージをラテンにすべて変換します。

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. ゼロはレート制限を意味しません。

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

クライアントセッションあたりのメッセージの送信数の最大値。 超過すると、クライアントは接続解除されます(バックプレッシャー)。 デフォルトは10000です。 ゼロは無制限です。

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秒です。 ゼロはタイムアウトを意味しません。

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