public Config PopulateConfiguration(Config config)
        {
            if (_scriptArgs != null && _scriptArgs.Contains("-HttpTraceEnabled"))
              {
            config.HttpTraceEnabled = true;
              }

              return config;
        }
 public void Initialise()
 {
     foreach (var provider in _configurationProviders)
       {
     lock (_lock)
     {
       _config = provider.PopulateConfiguration(_config);
     }
       }
 }
        public Config PopulateConfiguration(Config config)
        {
            string json;

              if (!File.Exists(_fileName))
              {
            throw new FileNotFoundException(string.Format("The configuration file could not be found at '{0}'.", _fileName));
              }

              using (var r = new StreamReader(_fileName))
              {
            json = r.ReadToEnd();
              }
              return JsonConvert.DeserializeObject<Config>(json);
        }