I'm trying to inject two singleton Cosmos clients that are the same in all senses except for a property that changes their behavior but I need both. This is how I'm adding them in Startup:
services.AddSingleton(new CosmosClientBuilder(CosmosConnStr))
.Build());
services.AddSingleton(new CosmosClientBuilder(CosmosConnStr))
.WithBulkExecution(true)
.Build());
Then in the classes I'm injecting as:
public CosmosService(CosmosClient cosmosClient, CosmosClient bulkCosmosClient)
The problem is how do I differentiate one from the other?