Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load correct settings from IConfigurationSection #221

Open
angelalb opened this issue Oct 15, 2019 · 0 comments
Open

Cannot load correct settings from IConfigurationSection #221

angelalb opened this issue Oct 15, 2019 · 0 comments
Labels
investigation This issue needs further investigation before working on a fix. P2

Comments

@angelalb
Copy link

I am trying to instantiate AdWordsAppConfig by passing an IConfigurationSection in Net Core 2.2, but the settings are not mapped corrently (at all).

I am using a nested section, and I believe the problem comes from this line:

LoadFromConfiguration(configurationSection, configurationSection.Key);

I believe the section prefix should be configurationSection.Path. With nested configuration sections, the key property only has the innermost key.

@christopherseeley christopherseeley added investigation This issue needs further investigation before working on a fix. P2 labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation This issue needs further investigation before working on a fix. P2
Projects
None yet
Development

No branches or pull requests

2 participants