Share via


IRazorComponentsBuilder Interface

Definition

A builder that can be used to configure Razor Components.

public interface IRazorComponentsBuilder
type IRazorComponentsBuilder = interface
Public Interface IRazorComponentsBuilder
Derived

Properties

Services

Gets the IServiceCollection.

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