Freigeben über


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Methode

Definition

Bestimmt, ob der Authentifizierungsstatus weiterhin gültig ist.

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)

Parameter

authenticationState
AuthenticationState

Der aktuelle AuthenticationState.

cancellationToken
CancellationToken

Ein CancellationToken , der beim Ausführen des Vorgangs zu beobachten ist.

Gibt zurück

Ein Task , der als true aufgelöst wird, wenn die authenticationState noch gültig ist, oder false, wenn dies nicht der Fall ist.

Gilt für: