# CassandraMembershipHostingExtensions.UseCassandraClustering(IClientBuilder, Action&lt;CassandraClusteringOptions&gt;)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Cassandra/Orleans.Clustering.Cassandra/Hosting/CassandraMembershipHostingExtensions.cs)

```csharp
public static IClientBuilder UseCassandraClustering(this IClientBuilder builder, Action<CassandraClusteringOptions> configureOptions)
```

Configures Orleans clustering using Cassandra.

### Parameters

- `builder` (`IClientBuilder`): The client builder.
- `configureOptions` (`Action<CassandraClusteringOptions>`): A delegate used to configure the Cassandra client.

### Returns

The client builder.
