Skip to content
Docs Try Aspire

CosmosDatabaseBuilder Constructors

Class Constructors 1 member
Represents a builder that can be used to register multiple container instances against the same Cosmos database connection.
Constructor(IHostApplicationBuilder, string, MicrosoftAzureCosmosSettings, CosmosClientOptions) Section titled Constructor(IHostApplicationBuilder, string, MicrosoftAzureCosmosSettings, CosmosClientOptions)
Represents a builder that can be used to register multiple container instances against the same Cosmos database connection.
public sealed class CosmosDatabaseBuilder
{
public CosmosDatabaseBuilder(
IHostApplicationBuilder hostBuilder,
string connectionName,
MicrosoftAzureCosmosSettings settings,
CosmosClientOptions clientOptions)
{
// ...
}
}
hostBuilder IHostApplicationBuilder
connectionName string
clientOptions CosmosClientOptions