Search documentationEsc

Miscellaneous

Container initialization, health checks, logging, and unique key policies.

A grab-bag of cross-cutting features that don’t belong with the core CRUD or query APIs but are essential to running Cosmos Repository confidently in production.

In this section

  • Container initialization — choose between lazy (default) and eager container creation for predictable startup behavior.
  • Health checks — ASP.NET Core IHealthCheck implementations that surface Cosmos DB connectivity through the standard health-check pipeline.
  • Logging — Event ID ranges and the high-performance source-generated logging used by the library.
  • Unique keys — enforce uniqueness within a partition with the [UniqueKey] attribute.