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)

适用于