RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
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.