dotnet / dotnet/command-line-api
[Question] Default Option value to come from appsettings?
Open
question
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
Is there a good way to inject IConfiguration into a `Option` object that inherits from the `Option` class via DI? I was providing a default value from an `Environment.GetVariable` but may need to get default values from the `appsettings.json`.
Contributor guide
Assessment
This issue has not been assessed yet.