Definition
Assembly: Microsoft.AspNetCore.Components.WebAssembly.dll Namespace: Microsoft.AspNetCore.Components.WebAssembly.HostingSyntax
Summary
This type is defined in Microsoft.AspNetCore.Components.WebAssembly.Remarks
See Microsoft documentation for more information about the rest of the API.Methods
AddBlazorEssentials Extension
Extension method from
Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilderExtensionsConfigurationBase, AppStateBase, and
HttpClientHttpClients</see> for interacting with both the
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder | The WebAssemblyHostBuilder instance to configure. |
configSectionName | string | The name of the Configuration node in appsettings.json that specifies BlazorEssentials settings. |
Returns
Type:Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder
The
Type Parameters
TConfiguration- TheConfigurationBase-derived type to register in the DI container.TAppState- The AppStateBase-derived type to register in the DI container.
AddBlazorEssentials Extension
Extension method from
Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilderExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
builder | Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder | The WebAssemblyHostBuilder instance to configure. |
configSectionName | string | The name of the Configuration node in appsettings.json that specifies BlazorEssentials settings. |
Returns
Type:Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder
Type Parameters
TConfiguration- TheConfigurationBase-derived type to register in the DI container.TAppState- The AppStateBase-derived type to register in the DI container.TMessageHandler- The DelegatingHandler-derived type to register for the built-in HttpClients. Defaults toBlazorEssentialsAuthorizationMessageHandler1`.