語言

IConnectionAuthenticationRefreshFeature.OnAuthenticationRefresh 屬性

定義

在驗證刷新前,取得或設定回撥。

public Func<Microsoft.AspNetCore.Connections.Features.AuthenticationRefreshContext,System.Threading.Tasks.Task<bool>> OnAuthenticationRefresh { get; set; }
member this.OnAuthenticationRefresh : Func<Microsoft.AspNetCore.Connections.Features.AuthenticationRefreshContext, System.Threading.Tasks.Task<bool>> with get, set
Public Property OnAuthenticationRefresh As Func(Of AuthenticationRefreshContext, Task(Of Boolean))

屬性值

備註

必須回 true 調才能進行刷新。 呼叫時不需持有使用者更新鎖,且可能執行非同步工作,但應能快速完成。 回調拋出的例外會拒絕刷新,且不會傳給呼叫者。 設定此屬性會取代先前設定的任何回撥。

適用於