# ZooKeeperHostingExtensions.UseZooKeeperClustering(IClientBuilder, Action&lt;OptionsBuilder&lt;ZooKeeperGatewayListProviderOptions&gt;&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.zookeeper/orleans.hosting.zookeeperhostingextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.zookeeper/orleans.hosting.zookeeperhostingextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Clustering.ZooKeeper/ZooKeeperHostingExtensions.cs)

```csharp
public static IClientBuilder UseZooKeeperClustering(this IClientBuilder builder, Action<OptionsBuilder<ZooKeeperGatewayListProviderOptions>> configureOptions)
```

Configure the client to use ZooKeeper for clustering.

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `configureOptions` (`Action<OptionsBuilder<ZooKeeperGatewayListProviderOptions>>`): The configuration delegate.

### Returns

The provided [IClientBuilder](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.iclientbuilder/).
