public override void Load()
        {
            try
            {
                foreach (var pathEnvVariable in _pathEnvironmentVariables)
                {
                    var configPath = Environment.GetEnvironmentVariable(pathEnvVariable);
                    if (configPath != null)
                    {
                        var jsonBytes = LoadJsonFile(configPath);

                        var secretsResolver = new SecretsResolver(_secretsMode);
                        var parser          = new JsonConfigurationFileParser(secretsResolver);
                        var configDict      = parser.Parse(new MemoryStream(jsonBytes));

                        foreach (var key in configDict.Keys)
                        {
                            Data.Add(key, configDict[key]);
                        }
                    }
                }
            }
            catch (ConfigurationException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new ConfigurationException("Failed on loading json file", ex);
            }
        }
 public JsonConfigurationFileParser(SecretsResolver secretsResolver)
 {
     _secretsResolver = secretsResolver;
 }