Partilhar via


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Método

Definição

Determina se o estado de autenticação ainda é válido.

protected:
 abstract System::Threading::Tasks::Task<bool> ^ ValidateAuthenticationStateAsync(Microsoft::AspNetCore::Components::Authorization::AuthenticationState ^ authenticationState, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<bool> ValidateAuthenticationStateAsync (Microsoft.AspNetCore.Components.Authorization.AuthenticationState authenticationState, System.Threading.CancellationToken cancellationToken);
abstract member ValidateAuthenticationStateAsync : Microsoft.AspNetCore.Components.Authorization.AuthenticationState * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Protected MustOverride Function ValidateAuthenticationStateAsync (authenticationState As AuthenticationState, cancellationToken As CancellationToken) As Task(Of Boolean)

Parâmetros

authenticationState
AuthenticationState

O AuthenticationState atual.

cancellationToken
CancellationToken

Um CancellationToken a ser observado durante a execução da operação.

Retornos

Um Task que será resolvido como true se o authenticationState ainda for válido ou false se não for.

Aplica-se a