共用方式為


AuthenticationHandler<TOptions>.HandleAuthenticateOnceAsync 方法

定義

用來確保 HandleAuthenticateAsync 只會叫用一次。 後續的呼叫會傳回相同的驗證結果。

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

傳回

適用於