RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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.