Sdílet prostřednictvím


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Metoda

Definice

Určuje, zda je stav ověřování stále platný.

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)

Parametry

authenticationState
AuthenticationState

Aktuální AuthenticationState.

cancellationToken
CancellationToken

A CancellationToken , které se mají sledovat při provádění operace.

Návraty

A Task , který se vyřeší jako true, authenticationState pokud je stále platný, nebo false, pokud není.

Platí pro