# ServiceCollectionExtensions.AddDashboard(IClientBuilder, Action&lt;DashboardOptions&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.servicecollectionextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.servicecollectionextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Dashboard/Orleans.Dashboard/ServiceCollectionExtensions.cs#L386-L392)

```csharp
public static IClientBuilder AddDashboard(this IClientBuilder clientBuilder, Action<DashboardOptions>? configureOptions = null)
```

Adds Orleans Dashboard services to an Orleans client builder. This allows you to host the Orleans Dashboard application on an Orleans client, so long as the silos also have the dashboard added.

### Parameters

- `clientBuilder` (`IClientBuilder`): The client builder.
- `configureOptions` (`Action<DashboardOptions>`): Optional configuration action for [DashboardOptions](/orleans/docs/api/csharp/microsoft.orleans.dashboard/orleans.dashboard.dashboardoptions/).

### Returns

The service collection for method chaining.
