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
IHealthCheckimplementations 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.