BaseServerSettings
設定。
コンストラクター
protected BaseServerSettings()
baseServerSettings = BaseServerSettings()
BaseServerSettings の新規インスタンスを初期化します。
プロパティ
public bool ConvertToLatin { get; set; }
value = baseServerSettings.ConvertToLatin
baseServerSettings.ConvertToLatin = value
テキストメッセージ以外のテキストメッセージをラテンにすべて変換します。
public TimeSpan DeadSessionCleanupInterval { get; set; }
value = baseServerSettings.DeadSessionCleanupInterval
baseServerSettings.DeadSessionCleanupInterval = value
接続解除のサブスクリプションをキープします。
public bool KeepSubscriptionsOnDisconnect { get; set; }
value = baseServerSettings.KeepSubscriptionsOnDisconnect
baseServerSettings.KeepSubscriptionsOnDisconnect = value
接続解除のサブスクリプションをキープします。
public int LoginRateLimitMaxAttempts { get; set; }
value = baseServerSettings.LoginRateLimitMaxAttempts
baseServerSettings.LoginRateLimitMaxAttempts = value
新規の試みが拒否される前に、LoginRateLimitWindow内の単一のIPアドレスから失敗したログインの試みの最大数。 デフォルトは 5. ゼロはレート制限を意味しません。
public TimeSpan LoginRateLimitWindow { get; set; }
value = baseServerSettings.LoginRateLimitWindow
baseServerSettings.LoginRateLimitWindow = value
LoginRateLimitMaxAttempts のスライドタイムウィンドウ。デフォルトは1分です。
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
クライアントセッションあたりのメッセージの送信数の最大値。 超過すると、クライアントは接続解除されます(バックプレッシャー)。 デフォルトは10000です。 ゼロは無制限です。
public int MaxTotalErrorCount { get; set; }
value = baseServerSettings.MaxTotalErrorCount
baseServerSettings.MaxTotalErrorCount = value
Max possible TotalErrorCount.
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.
public TimeSpan QuotesInterval { get; set; }
value = baseServerSettings.QuotesInterval
baseServerSettings.QuotesInterval = value
更新間隔を引用します。
public TimeSpan SendTimeout { get; set; }
value = baseServerSettings.SendTimeout
baseServerSettings.SendTimeout = value
クライアントに単一のメッセージを送信するタイムアウト。 超過すると、クライアントはあまりにも遅くなり、切断されます。 デフォルトは30秒です。 ゼロはタイムアウトを意味しません。
public string SslCertificate { get; set; }
value = baseServerSettings.SslCertificate
baseServerSettings.SslCertificate = value
証明書ファイル PFX/PKCS#12 へのパス。SslEnabledが の場合、必要です。
public string SslCertificatePassword { get; set; }
value = baseServerSettings.SslCertificatePassword
baseServerSettings.SslCertificatePassword = value
認証ファイル(SslCertificate@)にパスワードが記載されています。
public bool SslEnabled { get; set; }
value = baseServerSettings.SslEnabled
baseServerSettings.SslEnabled = value
クライアント接続用の TLS/SSL 暗号化を有効にします。デフォルトは (プレーンテキスト接続) です。
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.
メソッド
public virtual Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseServerSettings.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- SettingsStorage
- cancellationToken
- CancellationToken
戻り値: Task
public X509Certificate2 LoadSslCertificate()
result = baseServerSettings.LoadSslCertificate()
SslCertificateパスからX.509証明書をロードします。
戻り値: 積載証明書。
public virtual Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseServerSettings.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- SettingsStorage
- cancellationToken
- CancellationToken
戻り値: Task