v0.109.0
·
32 commits
to main
since this release
Aspire.Hosting.DocumentDB v0.109.0
Initial release of the .NET Aspire hosting integration for [DocumentDB](https://github.com/documentdb/documentdb), a MongoDB-compatible open-source document database built on PostgreSQL.
Highlights
- Targets DocumentDB
0.109.0(container imagepg17-0.109.0) - Built on .NET Aspire 13.1.x
Features
AddDocumentDB()/AddDatabase()-- server + database resource model for Aspire AppHost- TLS enabled by default with
tlsInsecure=truefor seamless local development with DocumentDB Local's self-signed certificate UseTls()/AllowInsecureTls()-- fine-grained TLS controlWithDataVolume()/WithDataBindMount()-- persistent storage supportWithHostPort()-- explicit port binding- Custom username/password via Aspire
ParameterResource - Compatible with
Aspire.MongoDB.Driverclient integration
Usage
var db = builder.AddDocumentDB("DocumentDB").AddDatabase("mydb");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);