ServerAuthenticationStateProvider Clase

Definición

Diseñado AuthenticationStateProvider para su uso en Blazor del lado servidor.

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
Herencia
ServerAuthenticationStateProvider
Derivado
Implementaciones

Constructores

ServerAuthenticationStateProvider()

Diseñado AuthenticationStateProvider para su uso en Blazor del lado servidor.

Métodos

GetAuthenticationStateAsync()

Obtiene de forma asincrónica un AuthenticationState objeto que describe al usuario actual.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

Genera el evento AuthenticationStateChanged.

(Heredado de AuthenticationStateProvider)
SetAuthenticationState(Task<AuthenticationState>)

Proporciona los datos de estado de autenticación actualizados a AuthenticationStateProvider.

Eventos

AuthenticationStateChanged

Evento que proporciona una notificación cuando AuthenticationState ha cambiado . Por ejemplo, este evento se puede generar si un usuario inicia sesión o cierra sesión.

(Heredado de AuthenticationStateProvider)

Se aplica a