AspireMicrosoftAzureCosmosExtensions
Classstaticnet10.0
Azure Cosmos DB extension
namespace Microsoft.Extensions.Hosting;
public static class AspireMicrosoftAzureCosmosExtensions{ // ...}6 members
Methods6
Section titled Methods Registers
Cosmos.CosmosClient as a singleton in the services provided by the builder. Configures logging and telemetry for the Cosmos.CosmosClient . Registers the
Cosmos.Container as a singleton in the services provided by the builder. Registers the
Cosmos.Database as a singleton the services provided by the builder and returns a CosmosDatabaseBuilder to support chaining multiple container registrations against the same database. Registers the
Cosmos.CosmosClient as a singleton for given name in the services provided by the builder. Configures logging and telemetry for the Cosmos.CosmosClient . Registers the
Cosmos.Container as a singleton for given name in the services provided by the builder. Registers the
Cosmos.Database as a singleton for given name in the services provided by the builder and returns a CosmosDatabaseBuilder to support chaining multiple container registrations against the same database.