Udostępnij za pośrednictwem


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Metoda

Definicja

Określa, czy stan uwierzytelniania jest nadal prawidłowy.

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

Bieżąca klasa AuthenticationState.

cancellationToken
CancellationToken

Element do CancellationToken obserwowania podczas wykonywania operacji.

Zwraca

Element Task , który rozpoznaje wartość true, jeśli authenticationState element jest nadal prawidłowy lub fałsz, jeśli tak nie jest.

Dotyczy