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

# IHostBuilder

> Extension methods for IHostBuilder from Microsoft.Extensions.Hosting.Abstractions

## Definition

**Assembly:** Microsoft.Extensions.Hosting.Abstractions.dll

**Namespace:** Microsoft.Extensions.Hosting

## Syntax

```csharp theme={"dark"}
Microsoft.Extensions.Hosting.IHostBuilder
```

## Summary

This type is defined in Microsoft.Extensions.Hosting.Abstractions.

## Remarks

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

## Methods

### &#x20;AddBlazorEssentials Extension

> [!NOTE]
>
> Extension method from `Microsoft.Extensions.Hosting.IHostBuilderExtensions`

Adds Blazor capabilities to the provided [IHostBuilder](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/Microsoft/Extensions/Hosting/IHostBuilder.md).

#### Syntax

```csharp theme={"dark"}
public static Microsoft.Extensions.Hosting.IHostBuilder AddBlazorEssentials<TConfiguration, TAppState, TMessageHandler>(Microsoft.Extensions.Hosting.IHostBuilder builder, string configSectionName) where TConfiguration : CloudNimble.EasyAF.Configuration.ConfigurationBase where TAppState : CloudNimble.BlazorEssentials.AppStateBase where TMessageHandler : System.Net.Http.DelegatingHandler
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `builder` | `Microsoft.Extensions.Hosting.IHostBuilder` | - |
| `configSectionName` | `string` | - |

#### Returns

Type: `Microsoft.Extensions.Hosting.IHostBuilder`

#### Type Parameters

* `TConfiguration` -
* `TAppState` -
* `TMessageHandler` -

### &#x20;AddBlazorEssentials Extension

> [!NOTE]
>
> Extension method from `Microsoft.Extensions.Hosting.IHostBuilderExtensions`

Adds Blazor capabilities to the provided [IHostBuilder](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/Microsoft/Extensions/Hosting/IHostBuilder.md).

#### Syntax

```csharp theme={"dark"}
public static Microsoft.Extensions.Hosting.IHostBuilder AddBlazorEssentials<TConfiguration, TAppState, TMessageHandler>(Microsoft.Extensions.Hosting.IHostBuilder builder, string configSectionName, CloudNimble.EasyAF.Core.HttpHandlerMode httpHandlerMode) where TConfiguration : CloudNimble.EasyAF.Configuration.ConfigurationBase where TAppState : CloudNimble.BlazorEssentials.AppStateBase where TMessageHandler : System.Net.Http.DelegatingHandler
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `builder` | `Microsoft.Extensions.Hosting.IHostBuilder` | - |
| `configSectionName` | `string` | - |
| `httpHandlerMode` | `CloudNimble.EasyAF.Core.HttpHandlerMode` | - |

#### Returns

Type: `Microsoft.Extensions.Hosting.IHostBuilder`

#### Type Parameters

* `TConfiguration` -
* `TAppState` -
* `TMessageHandler` -


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.