storage
storage copied to clipboard
Feature Request: Extend connection strings with configuration variables
It would be great if storage.net has some built-in support in expanding configuration variables in the connection string.
Some settings like passwords or paths can come from other configuration sources than the one where you define the connection string. A concrete usecase is:
The appsettings.development.json
comes with a blob connection string like disk://path=${TempFolder}
. But the configuration key TempFolder
can come from any other configuration source like environment variables or process defaults (e.g. WorkingDir\Temp in this case).
Whatever is provided as a value in the ${<value>}
would be used as index into the IConfiguration like: configuration[<value>]
.
I know there are quite some other packages which allow substitutions in general within the appsettings.json, but still it would be nice to have a built-in functionality in Storage.net to avoid any fragmentation.