Compartir a través de


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Método

Definición

Determina si el estado de autenticación sigue siendo 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

Objeto AuthenticationState actual.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras se realiza la operación.

Devoluciones

que Task se resuelve como true si authenticationState sigue siendo válido o false si no lo es.

Se aplica a