Partager via


ComponentServiceCollectionExtensions.AddServerSideBlazor Méthode

Définition

Ajoute Server-Side services Blazor à la collection de services.

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

Paramètres

services
IServiceCollection

L’IServiceCollectionopérateur

configure
Action<CircuitOptions>

Rappel pour configurer CircuitOptions.

Retours

IServerSideBlazorBuilder qui peut être utilisé pour personnaliser davantage la configuration.

S’applique à