storage icon indicating copy to clipboard operation
storage copied to clipboard

Feature Request: Extend connection strings with configuration variables

Open Danielku15 opened this issue 2 years ago • 0 comments

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.

Danielku15 avatar Feb 24 '22 10:02 Danielku15