ServerAuthenticationStateProvider Classe

Definição

Um AuthenticationStateProvider destinado ao uso no Blazor do lado do 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
Herança
ServerAuthenticationStateProvider
Derivado
Implementações

Construtores

ServerAuthenticationStateProvider()

Um AuthenticationStateProvider destinado ao uso no Blazor do lado do servidor.

Métodos

GetAuthenticationStateAsync()

Obtém de forma assíncrona um AuthenticationState que descreve o usuário atual.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

Aciona o evento AuthenticationStateChanged.

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

Fornece dados de estado de autenticação atualizados para o AuthenticationStateProvider.

Eventos

AuthenticationStateChanged

Um evento que fornece notificação quando o AuthenticationState foi alterado. Por exemplo, esse evento poderá ser gerado se um usuário fizer logon ou sair.

(Herdado de AuthenticationStateProvider)

Aplica-se a