public SessionManager() { CurrentLogger = NullLogger; config = new Config() { users = new User[0], execInfo = new ExecInfo[0] }; }
public void LoadSettings() { var serializer = new JsonSerializer(); try { using (var sr = new StreamReader(GetConfigFilePath())) using (var json = new JsonTextReader(sr)) { config = serializer.Deserialize<Config>(json); } } catch(FileNotFoundException) { } }