# HostCreatedHostBuilderExtensions Methods

- Package: [Joinery.Dovetail](/Dovetail/api/joinery.dovetail.md)
- Type: [HostCreatedHostBuilderExtensions](/Dovetail/api/joinery.dovetail/hostcreatedhostbuilderextensions.md)
- Kind: `Methods`
- Members: `2`

Builder-method extensions for applying HostCreated parts to a [DovetailContextBuilder](/Dovetail/api/joinery.dovetail/dovetailcontextbuilder.md).

<a id="configurehostcreated"></a>
<a id="configurehostcreated-dovetailcontextbuilder-hostcreatedjointdelegate-thost-int-dovetailcategory-dovetailhosttype-string"></a>

## ConfigureHostCreated(DovetailContextBuilder, HostCreatedJointDelegate<THost>, int, DovetailCategory?, DovetailHostType, string?)

- Name: `ConfigureHostCreated(DovetailContextBuilder, HostCreatedJointDelegate<THost>, int, DovetailCategory?, DovetailHostType, string?)`
- Modifiers: `extension`
- Returns: [DovetailContextBuilder](/Dovetail/api/joinery.dovetail/dovetailcontextbuilder.md)

```csharp
public static class HostCreatedHostBuilderExtensions
{
    public static DovetailContextBuilder ConfigureHostCreated<THost>(
        this DovetailContextBuilder container,
        HostCreatedJointDelegate<THost> @delegate,
        int priority = 0,
        DovetailCategory? category = null,
        DovetailHostType hostType = DovetailHostType.Undefined,
        string? expression = null)
    {
        // ...
    }
}
```

## Parameters

- `container` ([DovetailContextBuilder](/Dovetail/api/joinery.dovetail/dovetailcontextbuilder.md))
- `delegate` ([HostCreatedJointDelegate<THost>](/Dovetail/api/joinery.dovetail/hostcreatedjointdelegate-1.md))
- `priority` (`int`) `optional`
- `category` ([DovetailCategory?](/Dovetail/api/joinery.dovetail/dovetailcategory.md)) `optional`
- `hostType` ([DovetailHostType](/Dovetail/api/joinery.dovetail/dovetailhosttype.md)) `optional`
- `expression` (`string?`) `optional`

<a id="configurehostcreated-dovetailcontextbuilder-hostcreatedasyncjointdelegate-thost-int-dovetailcategory-dovetailhosttype-string"></a>

## ConfigureHostCreated(DovetailContextBuilder, HostCreatedAsyncJointDelegate<THost>, int, DovetailCategory?, DovetailHostType, string?)

- Name: `ConfigureHostCreated(DovetailContextBuilder, HostCreatedAsyncJointDelegate<THost>, int, DovetailCategory?, DovetailHostType, string?)`
- Modifiers: `extension`
- Returns: [DovetailContextBuilder](/Dovetail/api/joinery.dovetail/dovetailcontextbuilder.md)

```csharp
public static class HostCreatedHostBuilderExtensions
{
    public static DovetailContextBuilder ConfigureHostCreated<THost>(
        this DovetailContextBuilder container,
        HostCreatedAsyncJointDelegate<THost> @delegate,
        int priority = 0,
        DovetailCategory? category = null,
        DovetailHostType hostType = DovetailHostType.Undefined,
        string? expression = null)
    {
        // ...
    }
}
```

## Parameters

- `container` ([DovetailContextBuilder](/Dovetail/api/joinery.dovetail/dovetailcontextbuilder.md))
- `delegate` ([HostCreatedAsyncJointDelegate<THost>](/Dovetail/api/joinery.dovetail/hostcreatedasyncjointdelegate-1.md))
- `priority` (`int`) `optional`
- `category` ([DovetailCategory?](/Dovetail/api/joinery.dovetail/dovetailcategory.md)) `optional`
- `hostType` ([DovetailHostType](/Dovetail/api/joinery.dovetail/dovetailhosttype.md)) `optional`
- `expression` (`string?`) `optional`
