语言

IRazorComponentsBuilder 接口

定义

可用于配置 Razor 组件的生成器。

public interface IRazorComponentsBuilder
type IRazorComponentsBuilder = interface
Public Interface IRazorComponentsBuilder
派生

属性

名称 说明
Services

获取 IServiceCollection。

扩展方法

名称 说明
AddAuthenticationStateSerialization(IRazorComponentsBuilder, Action<AuthenticationStateSerializationOptions>)

AuthenticationState通过使用交互式 WebAssembly 组件通过反序列化客户端对服务器端AuthenticationStateProviderPersistentComponentState返回的返回进行序列化,可以通过从Microsoft调用 AddAuthenticationStateDeserialization 来添加该客户端AuthenticationStateProvider。客户端项目中的 AspNetCore.Components.WebAssembly.Authentication 包。

AddInteractiveServerComponents(IRazorComponentsBuilder, Action<CircuitOptions>)

添加服务以支持在 razor 组件应用程序中呈现交互式服务器组件。

AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder)

添加服务以支持呈现交互式 WebAssembly 组件。

RegisterPersistentService<TPersistentService>(IRazorComponentsBuilder, IComponentRenderMode)

在 Razor 组件生成器中将持久服务注册到指定的呈现模式。

适用于