Skip to content

v0.109.0

Choose a tag to compare

@guanzhousongmicrosoft guanzhousongmicrosoft released this 07 Apr 21:00
· 32 commits to main since this release
7ac1acc

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 image pg17-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=true for seamless local development with DocumentDB Local's self-signed certificate
  • UseTls() / AllowInsecureTls() -- fine-grained TLS control
  • WithDataVolume() / WithDataBindMount() -- persistent storage support
  • WithHostPort() -- explicit port binding
  • Custom username/password via Aspire ParameterResource
  • Compatible with Aspire.MongoDB.Driver client integration

Usage

var db = builder.AddDocumentDB("DocumentDB").AddDatabase("mydb");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);