AuthenticationHandler<TOptions>.HandleAuthenticateOnceSafeAsync 方法

定义

用于确保 HandleAuthenticateAsync 仅安全调用一次。 后续调用将返回相同的身份验证结果。 任何异常都将转换为包含异常的失败身份验证结果。

protected:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ HandleAuthenticateOnceSafeAsync();
protected System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> HandleAuthenticateOnceSafeAsync ();
member this.HandleAuthenticateOnceSafeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
Protected Function HandleAuthenticateOnceSafeAsync () As Task(Of AuthenticateResult)

返回

适用于