JsonConfig icon indicating copy to clipboard operation
JsonConfig copied to clipboard

Allow reading from alternate source locations (Azure, Url, etc)

Open ravensorb opened this issue 7 years ago • 1 comments

Would it be possible to add support to allow the settings to be loaded from alternative locations?

ravensorb avatar Apr 08 '17 20:04 ravensorb

You can apply a different configuration file by using Config.ApplyJsonFromPath or Config.ApplyJsonFromFileInfo:

ConfigObject customConfig = Config.ApplyJsonFromFileInfo(new FileInfo(PATH_TO_CONFIG_FILE)); Config.SetUserConfig(customConfig);

In the case of getting your settings from a URL you would need to grab a local copy of the remote file first.

signaltrace-dev avatar Jun 09 '17 15:06 signaltrace-dev