Freigeben über


ComponentServiceCollectionExtensions.AddServerSideBlazor Methode

Definition

Fügt der Dienstsammlung Server-Side Blazor-Dienste hinzu.

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

Parameter

configure
Action<CircuitOptions>

Ein Rückruf zum Konfigurieren CircuitOptionsvon .

Gibt zurück

Eine IServerSideBlazorBuilder , die verwendet werden kann, um die Konfiguration weiter anzupassen.

Gilt für: