private KronosConfigurationInstance()
        {
            var configFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData),
                                          "Madhon", "Kronos", "appSettings.json");

            Config = JsonConvert.DeserializeObject <KronosConfiguration>(File.ReadAllText(configFile)) !;
        }
Beispiel #2
0
 private KronosConfigurationInstance()
 {
     Config = SimpleJson.DeserializeObject <KronosConfiguration>(File.ReadAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "settings.json")));
 }