RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync 方法

定义

确定身份验证状态是否仍然有效。

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)

参数

authenticationState
AuthenticationState

当前的 AuthenticationState

cancellationToken
CancellationToken

执行 CancellationToken 操作时要观察的 。

返回

如果 Task 仍然有效,则解析为 true;如果 authenticationState 无效,则解析为 false。

适用于