# TestClusterHostFactory.CreateClusterClient(string, IConfiguration, Action&lt;IHostBuilder&gt;)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.TestingHost/TestClusterHostFactory.cs#L84-L103)

```csharp
public static IHost CreateClusterClient(string hostName, IConfiguration configuration, Action<IHostBuilder>? postConfigureHostBuilder = null)
```

Creates the cluster client.

### Parameters

- `hostName` (`string`): Name of the host.
- `configuration` (`IConfiguration`): The configuration.
- `postConfigureHostBuilder` (`Action<IHostBuilder>`): An optional delegate which can be used to configure the host builder just prior to a host being built.

### Returns

The cluster client host.
