RemoteAuthenticatorViewCore<TAuthenticationState> 類別

定義

處理應用程式中遠端驗證作業的元件。

generic <typename TAuthenticationState>
 where TAuthenticationState : RemoteAuthenticationStatepublic ref class RemoteAuthenticatorViewCore : Microsoft::AspNetCore::Components::ComponentBase
public class RemoteAuthenticatorViewCore<TAuthenticationState> : Microsoft.AspNetCore.Components.ComponentBase where TAuthenticationState : RemoteAuthenticationState
type RemoteAuthenticatorViewCore<'AuthenticationState (requires 'AuthenticationState :> RemoteAuthenticationState)> = class
    inherit ComponentBase
Public Class RemoteAuthenticatorViewCore(Of TAuthenticationState)
Inherits ComponentBase

類型參數

TAuthenticationState

作業進行時,使用者狀態類型會保存。 它必須可序列化。

繼承
RemoteAuthenticatorViewCore<TAuthenticationState>
衍生

建構函式

RemoteAuthenticatorViewCore<TAuthenticationState>()

處理應用程式中遠端驗證作業的元件。

屬性

Action

取得或設定 RemoteAuthenticationActions 元件需要處理的動作。

ApplicationPaths

取得或設定 RemoteAuthenticationApplicationPathsOptions 具有不同驗證頁面路徑的 。

AuthenticationState

取得或設定 TAuthenticationState 在驗證作業期間要保留的實例。

CompletingLoggingIn

取得或設定 RenderFragment ,其中包含正在處理時 LogInCallback 要顯示的 UI。

CompletingLogOut

取得或設定 RenderFragment ,其中包含正在處理時 LogOutCallback 要顯示的 UI。

LoggingIn

取得或設定 RenderFragment ,其中包含正在處理時 LogIn 要顯示的 UI。

LogInFailed

取得或設定 RenderFragment ,其中包含正在處理時 LogInFailed 要顯示的 UI。

LogOut

取得或設定 RenderFragment ,其中包含正在處理時 LogOut 要顯示的 UI。

LogOutFailed

取得或設定 RenderFragment ,其中包含正在處理時 LogOutFailed 要顯示的 UI。

LogOutSucceeded

取得或設定 RenderFragment ,其中包含正在處理時 LogOutSucceeded 要顯示的 UI。

OnLogInSucceeded

取得或設定事件回呼,當登入作業成功時,將會以預存驗證狀態叫用。

OnLogOutSucceeded

取得或設定事件回呼,當登出作業成功時,將會以預存驗證狀態叫用。

Registering

取得或設定 RenderFragment ,其中包含正在處理時 Register 要顯示的 UI。

UserProfile

取得或設定 RenderFragment ,其中包含正在處理時 Profile 要顯示的 UI。

方法

BuildRenderTree(RenderTreeBuilder)

將元件轉譯為提供的 RenderTreeBuilder

DispatchExceptionAsync(Exception)

將提供的 exception 視為這個元件擲回的 。 這會導致封入 ErrorBoundary 轉換為失敗狀態。 如果沒有封入 ErrorBoundary,則會將其視為封入轉譯器中的例外狀況。

如果例外狀況發生在元件生命週期方法之外,但您想要將其視為元件生命週期方法的例外狀況,這非常有用。

(繼承來源 ComponentBase)
InvokeAsync(Action)

在相關聯的轉譯器同步處理內容上執行提供的工作專案。

(繼承來源 ComponentBase)
InvokeAsync(Func<Task>)

在相關聯的轉譯器同步處理內容上執行提供的工作專案。

(繼承來源 ComponentBase)
OnAfterRender(Boolean)

每次元件以互動方式呈現且 UI 完成更新 (之後叫用的方法,例如,在元素新增至瀏覽器 DOM) 之後。 執行時,將會填入任何 ElementReference 欄位。

此方法不會在預先呈現或伺服器端轉譯期間叫用,因為這些進程不會附加至任何即時瀏覽器 DOM,而且已在更新 DOM 之前完成。

(繼承來源 ComponentBase)
OnAfterRenderAsync(Boolean)

每次元件以互動方式呈現且 UI 完成更新 (之後叫用的方法,例如,在元素新增至瀏覽器 DOM) 之後。 執行時,將會填入任何 ElementReference 欄位。

此方法不會在預先呈現或伺服器端轉譯期間叫用,因為這些進程不會附加至任何即時瀏覽器 DOM,而且已在更新 DOM 之前完成。

請注意,元件不會在任何傳 Task 回 的 完成之後自動重新轉譯,因為這會導致無限轉譯迴圈。

(繼承來源 ComponentBase)
OnInitialized()

當元件準備好啟動時叫用的方法,已從轉譯樹狀目錄中的父代收到其初始參數。

(繼承來源 ComponentBase)
OnInitializedAsync()

當元件準備好啟動時叫用的方法,已從轉譯樹狀目錄中的父代收到其初始參數。

如果您要執行非同步作業,並想要元件在完成該作業時重新整理,請覆寫這個方法。

(繼承來源 ComponentBase)
OnParametersSet()

當元件從轉譯樹狀目錄中的父系收到參數,並已將傳入值指派給屬性時叫用的方法。

(繼承來源 ComponentBase)
OnParametersSetAsync()

當元件從轉譯樹狀目錄中的父系收到參數,並已將傳入值指派給屬性時叫用的方法。

SetParametersAsync(ParameterView)

在轉譯樹狀結構中設定元件父代所提供的參數。

(繼承來源 ComponentBase)
ShouldRender()

傳回旗標,指出元件是否應該轉譯。

(繼承來源 ComponentBase)
StateHasChanged()

通知元件其狀態已變更。 適用時,這會導致重新轉譯元件。

(繼承來源 ComponentBase)

明確介面實作

IComponent.Attach(RenderHandle)

處理應用程式中遠端驗證作業的元件。

(繼承來源 ComponentBase)
IHandleAfterRender.OnAfterRenderAsync()

處理應用程式中遠端驗證作業的元件。

(繼承來源 ComponentBase)
IHandleEvent.HandleEventAsync(EventCallbackWorkItem, Object)

處理應用程式中遠端驗證作業的元件。

(繼承來源 ComponentBase)

適用於