dotnet / aspire

Tools, templates, and packages to accelerate building observable, production-ready apps
https://learn.microsoft.com/dotnet/aspire
MIT License
3.92k stars 479 forks source link

Make UserNameReference public to allow for alternate format database connection strings #5459

Open onionhammer opened 2 months ago

onionhammer commented 2 months ago

This property is internal, so if you need to create a different connection string format for your aspire resources (say psql format), it becomes more difficult

https://github.com/dotnet/aspire/blob/f5d9f80c3c667f5c84debfd427e7b0ae83493f7d/src/Aspire.Hosting.PostgreSQL/PostgresServerResource.cs#L42

davidfowl commented 2 months ago

We can just expose this property