Condividi tramite


RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync Metodo

Definizione

Determina se lo stato di autenticazione è ancora valido.

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)

Parametri

authenticationState
AuthenticationState

Oggetto AuthenticationState corrente.

cancellationToken
CancellationToken

Oggetto CancellationToken da osservare durante l'esecuzione dell'operazione.

Restituisce

Oggetto Task che risolve come true se l'oggetto authenticationState è ancora valido o false se non è.

Si applica a