CosmosDatabaseBuilder Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- hostBuilder
- IHostApplicationBuilder
- connectionName
- String
- settings
- MicrosoftAzureCosmosSettings
- clientOptions
- CosmosClientOptions