ServerAuthenticationStateProvider Klasa

Definicja

Przeznaczony AuthenticationStateProvider do użycia w blazor po stronie serwera.

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
Dziedziczenie
ServerAuthenticationStateProvider
Pochodne
Implementuje

Konstruktory

ServerAuthenticationStateProvider()

Przeznaczony AuthenticationStateProvider do użycia w blazor po stronie serwera.

Metody

GetAuthenticationStateAsync()

Asynchronicznie pobiera element AuthenticationState opisujący bieżącego użytkownika.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

AuthenticationStateChanged Zgłasza zdarzenie.

(Odziedziczone po AuthenticationStateProvider)
SetAuthenticationState(Task<AuthenticationState>)

Dostarcza zaktualizowane dane stanu uwierzytelniania do elementu AuthenticationStateProvider.

Zdarzenia

AuthenticationStateChanged

Zdarzenie, które dostarcza powiadomienie po AuthenticationState zmianie. Na przykład to zdarzenie może zostać zgłoszone, jeśli użytkownik zaloguje się lub wyloguje.

(Odziedziczone po AuthenticationStateProvider)

Dotyczy