Partager via


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Méthode

Définition

Détermine si l’état d’authentification est toujours valide.

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)

Paramètres

authenticationState
AuthenticationState

AuthenticationState actuel.

cancellationToken
CancellationToken

CancellationToken à observer lors de l’exécution de l’opération.

Retours

Task qui se résout comme true si est authenticationState toujours valide, ou false si ce n’est pas le cas.

S’applique à