ServerAuthenticationStateProvider クラス

定義

AuthenticationStateProviderサーバー側 Blazor で使用することを目的とした 。

public ref class ServerAuthenticationStateProvider : Microsoft::AspNetCore::Components::Authorization::AuthenticationStateProvider, Microsoft::AspNetCore::Components::Authorization::IHostEnvironmentAuthenticationStateProvider
public class ServerAuthenticationStateProvider : Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider, Microsoft.AspNetCore.Components.Authorization.IHostEnvironmentAuthenticationStateProvider
type ServerAuthenticationStateProvider = class
    inherit AuthenticationStateProvider
    interface IHostEnvironmentAuthenticationStateProvider
Public Class ServerAuthenticationStateProvider
Inherits AuthenticationStateProvider
Implements IHostEnvironmentAuthenticationStateProvider
継承
ServerAuthenticationStateProvider
派生
実装

コンストラクター

ServerAuthenticationStateProvider()

AuthenticationStateProviderサーバー側 Blazor で使用することを目的とした 。

メソッド

GetAuthenticationStateAsync()

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

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

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

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

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

イベント

AuthenticationStateChanged

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

(継承元 AuthenticationStateProvider)

適用対象