# CassandraClusteringOptions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.cassandra/orleans.clustering.cassandra.hosting.cassandraclusteringoptions/)

## ConfigureClient(Func&lt;IServiceProvider, Task&lt;ISession&gt;&gt;) {#configureclient-system-func-system-iserviceprovider-system-threading-tasks-task-3020366e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.cassandra/orleans.clustering.cassandra.hosting.cassandraclusteringoptions/methods/configureclient-system-func-system-iserviceprovider-system-threading-tasks-task-3020366e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Cassandra/Orleans.Clustering.Cassandra/Hosting/CassandraClusteringOptions.cs#L71-L73)

```csharp
public void ConfigureClient(Func<IServiceProvider, Task<ISession>> configurationDelegate)
```

Configures the Cassandra client.

### Parameters

- `configurationDelegate` (`Func<IServiceProvider, Task<ISession>>`): The connection string.

## ConfigureClient(string, string) {#configureclient-string-string-799bea27}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.clustering.cassandra/orleans.clustering.cassandra.hosting.cassandraclusteringoptions/methods/configureclient-string-string-799bea27/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Cassandra/Orleans.Clustering.Cassandra/Hosting/CassandraClusteringOptions.cs#L53-L63)

```csharp
public void ConfigureClient(string connectionString, string keyspace = "orleans")
```

Configures the Cassandra client.

### Parameters

- `connectionString` (`string`): The connection string.
- `keyspace` (`string`): The keyspace.
