WebAssemblyHostBuilderExtensions

Syntax

public static class WebAssemblyHostBuilderExtensions

Inheritance

Methods

AddBlazorEssentials<TConfiguration, TAppState, TMessageHandler>

public static WebAssemblyHostBuilder AddBlazorEssentials<TConfiguration, TAppState, TMessageHandler>(this WebAssemblyHostBuilder builder, string configSectionName) where TConfiguration : ConfigurationBase where TAppState : AppStateBase where TMessageHandler : DelegatingHandler

Parameters

  • builder WebAssemblyHostBuilder: The instance to configure.
  • configSectionName string: The name of the Configuration node in appsettings.json that specifies BlazorEssentials settings.

Returns

WebAssemblyHostBuilder

AddBlazorEssentials<TConfiguration, TAppState>

public static WebAssemblyHostBuilder AddBlazorEssentials<TConfiguration, TAppState>(this WebAssemblyHostBuilder builder, string configSectionName) where TConfiguration : ConfigurationBase where TAppState : AppStateBase
Registers the necessary services to bootstrap BlazorEssentials, including a , , and for interacting with both the

Parameters

  • builder WebAssemblyHostBuilder: The instance to configure.
  • configSectionName string: The name of the Configuration node in appsettings.json that specifies BlazorEssentials settings.

Returns

WebAssemblyHostBuilder The