Share via


CosmosDatabaseBuilder Constructor

Definition

Represents a builder that can be used to register multiple container instances against the same Cosmos database connection.

public CosmosDatabaseBuilder(Microsoft.Extensions.Hosting.IHostApplicationBuilder hostBuilder, string connectionName, Aspire.Microsoft.Azure.Cosmos.MicrosoftAzureCosmosSettings settings, Microsoft.Azure.Cosmos.CosmosClientOptions clientOptions);
new Aspire.Microsoft.Azure.Cosmos.CosmosDatabaseBuilder : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Aspire.Microsoft.Azure.Cosmos.MicrosoftAzureCosmosSettings * Microsoft.Azure.Cosmos.CosmosClientOptions -> Aspire.Microsoft.Azure.Cosmos.CosmosDatabaseBuilder
Public Sub New (hostBuilder As IHostApplicationBuilder, connectionName As String, settings As MicrosoftAzureCosmosSettings, clientOptions As CosmosClientOptions)

Parameters

connectionName
String
clientOptions
CosmosClientOptions

Applies to