Repository navigation
Add IDistributedApplicationComponentWithConnectionString to app model - #130
Conversation
- With the latest changes to the app model we have landed on a generic way for resources in the app model to express that they can provide a connection string to a dependency that requests it. This change introduces that abstraction (assuming no extra arguments) and exposes a WithReference method that handles injecting the right connection information based on the component name.
|
I like it overall How do you envisage this working for resource types with "sub-things". For example a Postgres where the connection string should really specify the specific database? Also on naming how about |
I think those become resources instead of arguments to WithX*. It makes things much easier to model.
Done for consistency. |
PS: The azure components will get the same treatment once we merge this change #65