# InProcessTestClusterBuilder Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/)

## Build {#build-e7cb20a6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/build-e7cb20a6/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L109-L114)

```csharp
public InProcessTestCluster Build()
```

Builds this instance.

### Returns

InProcessTestCluster.

## ConfigureClient(Action&lt;IClientBuilder&gt;) {#configureclient-system-action-orleans-hosting-iclientbuilder-28ef4c61}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/configureclient-system-action-orleans-hosting-iclientbuilder-28ef4c61/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L89-L90)

```csharp
public InProcessTestClusterBuilder ConfigureClient(Action<IClientBuilder> configureClientDelegate)
```

Adds a delegate to configure clients.

### Parameters

- `configureClientDelegate` (`Action<IClientBuilder>`)

### Returns

The builder.

## ConfigureClientHost(Action&lt;IHostApplicationBuilder&gt;) {#configureclienthost-system-action-microsoft-extensions-hosting-ihostapplicationb-e0fe1855}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/configureclienthost-system-action-microsoft-extensions-hosting-ihostapplicationb-e0fe1855/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L99-L100)

```csharp
public InProcessTestClusterBuilder ConfigureClientHost(Action<IHostApplicationBuilder> configureHostDelegate)
```

Adds a delegate to configure clients hosts.

### Parameters

- `configureHostDelegate` (`Action<IHostApplicationBuilder>`)

### Returns

The builder.

## ConfigureHost(Action&lt;IHostApplicationBuilder&gt;) {#configurehost-system-action-microsoft-extensions-hosting-ihostapplicationbuilder-cfd8d16a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/configurehost-system-action-microsoft-extensions-hosting-ihostapplicationbuilder-cfd8d16a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L58-L60)

```csharp
public InProcessTestClusterBuilder ConfigureHost(Action<IHostApplicationBuilder> configureDelegate)
```

Adds a delegate for configuring silo and client hosts.

### Parameters

- `configureDelegate` (`Action<IHostApplicationBuilder>`)

## ConfigureSilo(Action&lt;InProcessTestSiloSpecificOptions, ISiloBuilder&gt;) {#configuresilo-system-action-orleans-testinghost-inprocesstestsilospecificoptions-d9aeb95a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/configuresilo-system-action-orleans-testinghost-inprocesstestsilospecificoptions-d9aeb95a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L69-L70)

```csharp
public InProcessTestClusterBuilder ConfigureSilo(Action<InProcessTestSiloSpecificOptions, ISiloBuilder> configureSiloDelegate)
```

Adds a delegate to configure silos.

### Parameters

- `configureSiloDelegate` (`Action<InProcessTestSiloSpecificOptions, ISiloBuilder>`)

### Returns

The builder.

## ConfigureSiloHost(Action&lt;InProcessTestSiloSpecificOptions, IHostApplicationBuilder&gt;) {#configuresilohost-system-action-orleans-testinghost-inprocesstestsilospecificopt-784b39c3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/configuresilohost-system-action-orleans-testinghost-inprocesstestsilospecificopt-784b39c3/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L79-L80)

```csharp
public InProcessTestClusterBuilder ConfigureSiloHost(Action<InProcessTestSiloSpecificOptions, IHostApplicationBuilder> configureSiloHostDelegate)
```

Adds a delegate to configure silo hosts.

### Parameters

- `configureSiloHostDelegate` (`Action<InProcessTestSiloSpecificOptions, IHostApplicationBuilder>`)

### Returns

The builder.

## CreateClusterId {#createclusterid-b1f22c54}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestclusterbuilder/methods/createclusterid-b1f22c54/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestClusterBuilder.cs#L123-L127)

```csharp
public static string CreateClusterId()
```

Creates a cluster identifier.

### Returns

A new cluster identifier.
