RevalidatingServerAuthenticationStateProvider.ValidateAuthenticationStateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定身份验证状态是否仍然有效。
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。