# CosmosOptions.ConfigureCosmosClient(Func&lt;IServiceProvider, ValueTask&lt;CosmosClient&gt;&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.reminders.cosmos/orleans.reminders.cosmos.cosmosoptions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Shared/Cosmos/CosmosOptions.cs#L116-L117)

```csharp
public void ConfigureCosmosClient(Func<IServiceProvider, ValueTask<CosmosClient>> createClient)
```

Configures the Cosmos DB client.

### Parameters

- `createClient` (`Func<IServiceProvider, ValueTask<CosmosClient>>`): The delegate used to create the Cosmos DB client.
