> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# WebAssemblyHostBuilder

> Extension methods for WebAssemblyHostBuilder from Microsoft.AspNetCore.Components.WebAssembly

## Definition

**Assembly:** Microsoft.AspNetCore.Components.WebAssembly.dll

**Namespace:** Microsoft.AspNetCore.Components.WebAssembly.Hosting

## Syntax

```csharp theme={"dark"}
Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder
```

## Summary

This type is defined in Microsoft.AspNetCore.Components.WebAssembly.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.webassembly.hosting.webassemblyhostbuilder) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> UseIndexedDbMessagePublisher <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.AspNetCore.Components.WebAssembly.Hosting.SimpleMessageBus_Publish_IndexedDb_WebAssemblyHostBuilderExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void UseIndexedDbMessagePublisher(Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder builder, string configSectionName = "SimpleMessageBus:IndexedDb", System.Action<CloudNimble.SimpleMessageBus.IndexedDb.Core.IndexedDbOptions> indexedDbOptions = null)
```

#### Parameters

| Name                | Type                                                                          | Description |
| ------------------- | ----------------------------------------------------------------------------- | ----------- |
| `builder`           | `Microsoft.AspNetCore.Components.WebAssembly.Hosting.WebAssemblyHostBuilder`  | -           |
| `configSectionName` | `string`                                                                      | -           |
| `indexedDbOptions`  | `System.Action<CloudNimble.SimpleMessageBus.IndexedDb.Core.IndexedDbOptions>` | -           |
