# OrleansSiloGenericHostExtensions.UseOrleans(IHostApplicationBuilder, Action&lt;ISiloBuilder&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/microsoft.extensions.hosting.orleanssilogenerichostextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/microsoft.extensions.hosting.orleanssilogenerichostextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Hosting/OrleansSiloGenericHostExtensions.cs)

```csharp
public static IHostApplicationBuilder UseOrleans(this IHostApplicationBuilder hostAppBuilder, Action<ISiloBuilder> configureDelegate)
```

Configures the host builder to host an Orleans silo.

### Parameters

- `hostAppBuilder` (`IHostApplicationBuilder`): The host app builder.
- `configureDelegate` (`Action<ISiloBuilder>`): The delegate used to configure the silo.

### Returns

The host builder.
