コード例 #1
0
 public SessionManager()
 {
     CurrentLogger = NullLogger;
     config = new Config() { users = new User[0], execInfo = new ExecInfo[0] };
 }
コード例 #2
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)
     {
     }
 }