Share via


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)

傳回

適用於