Closed dmitriy-pisarevskiy closed 2 years ago
looks like I found something SectionHandler<T>
Yes, SectionHandler<T>
is the way to handle this scenario. Traditionally, a section handler would iterate over the child nodes of its given section rather than the attributes of the section node... but that's a choice made by the section handler. If your 'ApiConfiguration' section expects settings as attributes, then this is the correct way to do it.
Hey! How I can map directly from json to ConfigurationSection? Most likely how you did with connectionStrings, but only on root element.
Example JSON file:
Section ApiConfiguration class nested from ConfigurationSection
must got as result something like xml