Skip to content

Allow reading connection strings from config - #133

Merged
David Fowler (davidfowl) merged 2 commits into
mainfrom
davidfowl/connection-strings
Oct 9, 2023
Merged

Allow reading connection strings from config#133
David Fowler (davidfowl) merged 2 commits into
mainfrom
davidfowl/connection-strings

Conversation

@davidfowl

@davidfowl David Fowler (davidfowl) commented Oct 9, 2023

Copy link
Copy Markdown
Collaborator
  • This allows the existing components (postgres, sql, redis) to read from config as a fallback after getting their own connection string.

Contributes to #120

PS: Once we do #132, this logic will only exist in a single place.

- This allows the existing components (postgres, sql, redis) to read from config as a fallback after getting their own connection string.

#120
where T : IDistributedApplicationComponentWithEnvironment
{
return builder.WithReference(redisBuilder);
return builder.WithReference(redisBuilder, connectionName);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bug I introduced.

@davidfowl
David Fowler (davidfowl) merged commit fe3bbec into main Oct 9, 2023
@davidfowl
David Fowler (davidfowl) deleted the davidfowl/connection-strings branch October 9, 2023 07:05
@github-actions github-actions Bot locked and limited conversation to collaborators May 1, 2024
Leszek Pietrzak (LeszekKalibrate) pushed a commit to LeszekKalibrate/aspire that referenced this pull request Feb 27, 2025
* Update package version & fix node sample
* Fix DatabaseContainers example
* Fix AspireWithJavaScript sample
* Fix VoumeMount sample
* Fix eShopLite sample
* Rename eShopLite sample to AspireShop
* Update to latest Dapr client

Fixes microsoft#133

* Update DatabaseContainers to use WithEntrypoint method
* Update Metrics to use new WithBindMount method

Fixes microsoft#139

* Update all package versions to latest on nuget.org

---------

Co-authored-by: James Newton-King <james@newtonking.com>
Co-authored-by: moljac <mcvjetko@holisticware.net>
@github-actions github-actions Bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants