ComponentServiceCollectionExtensions.AddServerSideBlazor 方法

定义

将 Server-Side Blazor 服务添加到服务集合。

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

参数

configure
Action<CircuitOptions>

用于配置 CircuitOptions的回调。

返回

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

适用于