Condividi tramite


ComponentServiceCollectionExtensions.AddServerSideBlazor Metodo

Definizione

Aggiunge Server-Side servizi Blazor alla raccolta di servizi.

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

Parametri

configure
Action<CircuitOptions>

Callback per configurare CircuitOptions.

Restituisce

Oggetto IServerSideBlazorBuilder che può essere usato per personalizzare ulteriormente la configurazione.

Si applica a