語言

IHostEnvironmentAuthenticationStateProvider 介面

定義

服務實作的介面,可從主機環境接收驗證狀態資訊。 如果這是由主機的 AuthenticationStateProvider實作,則會從 HttpContext 接收驗證狀態。 或者,如果直接註冊為 IHostEnvironmentAuthenticationStateProvider的實作服務,則會接收由 GetAuthenticationStateAsync() 傳回的 AuthenticationState

public interface class IHostEnvironmentAuthenticationStateProvider
public interface IHostEnvironmentAuthenticationStateProvider
type IHostEnvironmentAuthenticationStateProvider = interface
Public Interface IHostEnvironmentAuthenticationStateProvider
衍生

方法

名稱 Description
SetAuthenticationState(Task<AuthenticationState>)

將更新的驗證狀態資料提供給 AuthenticationStateProvider。

適用於