Share via


RemoteAuthenticatorView 类

定义

一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。

public ref class RemoteAuthenticatorView : Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticatorViewCore<Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationState ^>
public class RemoteAuthenticatorView : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticatorViewCore<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState>
type RemoteAuthenticatorView = class
    inherit RemoteAuthenticatorViewCore<RemoteAuthenticationState>
Public Class RemoteAuthenticatorView
Inherits RemoteAuthenticatorViewCore(Of RemoteAuthenticationState)
继承

构造函数

RemoteAuthenticatorView()

初始化 RemoteAuthenticatorView 的新实例。

属性

Action

获取或设置 RemoteAuthenticationActions 组件需要处理的操作。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
ApplicationPaths

获取或设置 RemoteAuthenticationApplicationPathsOptions 包含不同身份验证页的路径的 。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
AuthenticationState

获取或设置在 TAuthenticationState 身份验证操作期间要保留的 实例。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
CompletingLoggingIn

获取或设置 , RenderFragment 其中包含在处理时 LogInCallback 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
CompletingLogOut

获取或设置 , RenderFragment 其中包含在处理时 LogOutCallback 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
LoggingIn

获取或设置 , RenderFragment 其中包含在处理时 LogIn 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
LogInFailed

获取或设置 , RenderFragment 其中包含在处理时 LogInFailed 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
LogOut

获取或设置 , RenderFragment 其中包含在处理时 LogOut 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
LogOutFailed

获取或设置 , RenderFragment 其中包含在处理时 LogOutFailed 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
LogOutSucceeded

获取或设置 , RenderFragment 其中包含在处理时 LogOutSucceeded 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
OnLogInSucceeded

获取或设置一个事件回调,该回调将在登录操作成功时使用存储的身份验证状态调用。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
OnLogOutSucceeded

获取或设置一个事件回调,该回调将在注销操作成功时使用存储的身份验证状态调用。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
Registering

获取或设置 , RenderFragment 其中包含在处理时 Register 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
UserProfile

获取或设置 , RenderFragment 其中包含在处理时 Profile 要显示的 UI。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)

方法

BuildRenderTree(RenderTreeBuilder)

将组件呈现给提供的 RenderTreeBuilder

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
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()

当组件从呈现树中的父级接收参数并将传入值分配给属性时调用的方法。

(继承自 RemoteAuthenticatorViewCore<TAuthenticationState>)
SetParametersAsync(ParameterView)

设置组件父级在呈现树中提供的参数。

(继承自 ComponentBase)
ShouldRender()

返回一个标志,指示组件是否应呈现。

(继承自 ComponentBase)
StateHasChanged()

通知组件其状态已更改。 如果适用,这将导致重新呈现组件。

(继承自 ComponentBase)

显式接口实现

IComponent.Attach(RenderHandle)

一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。

(继承自 ComponentBase)
IHandleAfterRender.OnAfterRenderAsync()

一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。

(继承自 ComponentBase)
IHandleEvent.HandleEventAsync(EventCallbackWorkItem, Object)

一个 , RemoteAuthenticatorViewCore<TAuthenticationState> 它使用 RemoteAuthenticationState 作为在身份验证操作中持久保存的状态。

(继承自 ComponentBase)

适用于