Share via


RevalidatingServerAuthenticationStateProvider クラス

定義

ホスト環境から認証状態を受け取り、定期的に再検証するサービスの基本クラス AuthenticationStateProvider

public ref class RevalidatingServerAuthenticationStateProvider abstract : Microsoft::AspNetCore::Components::Server::ServerAuthenticationStateProvider, IDisposable
public abstract class RevalidatingServerAuthenticationStateProvider : Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider, IDisposable
type RevalidatingServerAuthenticationStateProvider = class
    inherit ServerAuthenticationStateProvider
    interface IDisposable
Public MustInherit Class RevalidatingServerAuthenticationStateProvider
Inherits ServerAuthenticationStateProvider
Implements IDisposable
継承
RevalidatingServerAuthenticationStateProvider
実装

コンストラクター

RevalidatingServerAuthenticationStateProvider(ILoggerFactory)

のインスタンス RevalidatingServerAuthenticationStateProviderを構築します。

プロパティ

RevalidationInterval

再検証の試行間隔を取得します。

メソッド

Dispose(Boolean)

ホスト環境から認証状態を受け取り、定期的に再検証するサービスの基本クラス AuthenticationStateProvider

GetAuthenticationStateAsync()

現在のユーザーを記述する を AuthenticationState 非同期的に取得します。

(継承元 ServerAuthenticationStateProvider)
NotifyAuthenticationStateChanged(Task<AuthenticationState>)

AuthenticationStateChanged イベントを発生させます。

(継承元 AuthenticationStateProvider)
SetAuthenticationState(Task<AuthenticationState>)

更新された認証状態データを に提供します AuthenticationStateProvider

(継承元 ServerAuthenticationStateProvider)
ValidateAuthenticationStateAsync(AuthenticationState, CancellationToken)

認証状態がまだ有効かどうかを判断します。

イベント

AuthenticationStateChanged

が変更されたときに通知を提供する AuthenticationState イベント。 たとえば、ユーザーがログインまたはログアウトすると、このイベントが発生する可能性があります。

(継承元 AuthenticationStateProvider)

明示的なインターフェイスの実装

IDisposable.Dispose()

ホスト環境から認証状態を受け取り、定期的に再検証するサービスの基本クラス AuthenticationStateProvider

適用対象