ServerRazorComponentsBuilderExtensions.AddInteractiveServerComponents 方法

定义

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

public static Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder AddInteractiveServerComponents (this Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder builder, Action<Microsoft.AspNetCore.Components.Server.CircuitOptions>? configure = default);
static member AddInteractiveServerComponents : Microsoft.Extensions.DependencyInjection.IRazorComponentsBuilder * Action<Microsoft.AspNetCore.Components.Server.CircuitOptions> -> Microsoft.Extensions.DependencyInjection.IServerSideBlazorBuilder
<Extension()>
Public Function AddInteractiveServerComponents (builder As IRazorComponentsBuilder, Optional configure As Action(Of CircuitOptions) = Nothing) As IServerSideBlazorBuilder

参数

configure
Action<CircuitOptions>

用于配置 CircuitOptions的回调。

返回

可用于 IRazorComponentsBuilder 进一步自定义配置的 。

适用于