Is there an easy way to concatenate configuration to avoid redundancy?
"Directories": {
"Root": "my\\root\\folder",
"Log": "{Root}\\Log",
"Data": "{Root}\\Data"
}
Instead of writing the full path of each directory, I can pass {Root} as a variable. This way, users just need to update 1 configuration line instead of all 3.
When I call Configuration["Directories:Log"], it returns as my\\root\\folder\\Log. Same thing with Data and other possible combinations. Basically if possible, I want to use other configuration as a variable inside the configuration file (appsettings.json).