Sdílet prostřednictvím


ServerAuthenticationStateProvider Třída

Definice

Určený AuthenticationStateProvider pro použití v blazoru na straně serveru.

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
Dědičnost
ServerAuthenticationStateProvider
Odvozené
Implementuje

Konstruktory

ServerAuthenticationStateProvider()

Určený AuthenticationStateProvider pro použití v blazoru na straně serveru.

Metody

GetAuthenticationStateAsync()

Asynchronně získá objekt AuthenticationState , který popisuje aktuálního uživatele.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

AuthenticationStateChanged Vyvolá událost.

(Zděděno od AuthenticationStateProvider)
SetAuthenticationState(Task<AuthenticationState>)

Poskytuje aktualizovaná data o stavu ověřování do .AuthenticationStateProvider

Událost

AuthenticationStateChanged

Událost, která poskytuje oznámení, když došlo ke AuthenticationState změně. Tato událost může být například vyvolána, pokud se uživatel přihlásí nebo odhlásí.

(Zděděno od AuthenticationStateProvider)

Platí pro