Share via


CosmosDatabaseBuilder Class

Definition

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

public sealed class CosmosDatabaseBuilder
type CosmosDatabaseBuilder = class
Public NotInheritable Class CosmosDatabaseBuilder
Inheritance
CosmosDatabaseBuilder

Constructors

CosmosDatabaseBuilder(IHostApplicationBuilder, String, MicrosoftAzureCosmosSettings, CosmosClientOptions)

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

Methods

AddKeyedContainer(String)

Register a Container against the database managed with CosmosDatabaseBuilder as a keyed singleton.

Applies to