IRazorComponentsBuilder Interface

Definition

A builder that can be used to configure Razor Components.

C#
public interface IRazorComponentsBuilder
Derived

Properties

Extension Methods

AddInteractiveServerComponents(IRazorComponentsBuilder, Action<CircuitOptions>)

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

AddAuthenticationStateSerialization(IRazorComponentsBuilder, Action<AuthenticationStateSerializationOptions>)

Serializes the AuthenticationState returned by the server-side AuthenticationStateProvider using PersistentComponentState for use by interactive WebAssembly components via a deserializing client-side AuthenticationStateProvider which can be added by calling AddAuthenticationStateDeserialization from the Microsoft.AspNetCore.Components.WebAssembly.Authentication package in the client project.

AddInteractiveWebAssemblyComponents(IRazorComponentsBuilder)

Adds services to support rendering interactive WebAssembly components.

Applies to

Product Versions
ASP.NET Core 8.0, 9.0