# ZooKeeperHostingExtensions.UseZooKeeperClustering(IClientBuilder, Action&lt;ZooKeeperGatewayListProviderOptions&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<ZooKeeperGatewayListProviderOptions> configureOptions)
```

Configure the client to use ZooKeeper for clustering.

### Parameters

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

### Returns

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