Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ServerRazorComponentsBuilderExtensions.AddInteractiveServerComponents Method

Definition

Namespace:
Microsoft.Extensions.DependencyInjection
Assembly:
Microsoft.AspNetCore.Components.Server.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
ServerRazorComponentsBuilderExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Adds services to support rendering interactive server components in a razor components application.

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

Parameters

configure
Action<CircuitOptions>

A callback to configure CircuitOptions.

Returns

An IRazorComponentsBuilder that can be used to further customize the configuration.

Applies to


Feedback

Was this page helpful?