# CassandraClusteringOptions.ConfigureClient(Func&lt;IServiceProvider, Task&lt;ISession&gt;&gt;)

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

[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.
