Exemple #1
0
        public static OverrideConfiguration LoadOverride()
        {
            OverrideConfiguration returnConfiguration = null;
            String path = System.IO.Path.Combine(
                AppDomain.CurrentDomain.BaseDirectory,
                "Override.json");

            if (System.IO.File.Exists(path))
            {
                returnConfiguration =
                    Newtonsoft.Json.JsonConvert.DeserializeObject <OverrideConfiguration>(
                        System.IO.File.ReadAllText(path));
            }

            return(returnConfiguration);
        }
Exemple #2
0
 public RecordProvider()
 {
     this.Configuration = OverrideConfiguration.LoadOverride();
 }