Language

AuthenticationRefreshOptions クラス

定義

HubConnectionの自動認証トークン更新を構成します。

public sealed class AuthenticationRefreshOptions
type AuthenticationRefreshOptions = class
Public NotInheritable Class AuthenticationRefreshOptions
継承
AuthenticationRefreshOptions

コンストラクター

Name 説明
AuthenticationRefreshOptions()

HubConnectionの自動認証トークン更新を構成します。

プロパティ

Name 説明
EnableAutoRefresh

サーバーから報告されたトークンの有効期限が切れる前に、トークンの自動更新を有効にします。 既定値は true です。

RefreshBeforeExpiration

サーバーから報告されたトークンの有効期限が切れるまで、クライアントが更新する必要がある期間。 クライアントは、 now + tokenLifetimeSeconds - RefreshBeforeExpirationで更新をスケジュールします。 既定値は 5 分です。

適用対象