CosmosDatabaseBuilder Constructors

ClassConstructors1 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)
Initializes a new instance of the CosmosDatabaseBuilder class.
public sealed class CosmosDatabaseBuilder
{
public CosmosDatabaseBuilder(
IHostApplicationBuilder hostBuilder,
string connectionName,
MicrosoftAzureCosmosSettings settings,
CosmosClientOptions clientOptions)
{
// ...
}
}
hostBuilderIHostApplicationBuilderThe application builder used to register Cosmos services.
connectionNamestringThe connection name used to configure the Cosmos client.
settingsMicrosoftAzureCosmosSettingsThe settings used to configure the Cosmos client.
clientOptionsCosmosClientOptionsThe options used to configure the Cosmos client.