-
Given I have an app with with a dependency (say Kafka messaging). I would like to add an aspire host that starts Kafka in a container my app configured to use Kafka. However, I have my own appsettings json for the configuration, which I would like to keep using. How can I map the Kafka settings onto my projects appsettings ? |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Sep 5, 2024
Replies: 1 comment 1 reply
-
Using WithEnvironment instead of WithReference you can change the format of the name so it matches your configuration. Assuming you are using .NET's IConfiguration system, that should just work. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ladeak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using WithEnvironment instead of WithReference you can change the format of the name so it matches your configuration. Assuming you are using .NET's IConfiguration system, that should just work.