IConnectionAuthenticationRefreshFeature.OnAuthenticationRefresh 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在驗證刷新前,取得或設定回撥。
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 調才能進行刷新。 呼叫時不需持有使用者更新鎖,且可能執行非同步工作,但應能快速完成。 回調拋出的例外會拒絕刷新,且不會傳給呼叫者。 設定此屬性會取代先前設定的任何回撥。