public void LoadEventsFromDisk()
 {
     if (File.Exists(path))
     {
         LogExt.LogReadFile(path);
         var eventCollection =
             JsonConvert.DeserializeObject <ICollection <GetActiveEventsV2Raw> >(File.ReadAllText(path));
         cache.AddEvents(eventCollection);
     }
 }
 public void LoadEventsFromDisk()
 {
     if (File.Exists(path))
     {
         LogExt.LogReadFile(path);
         var fileText = File.ReadAllText(path);
         ICollection <GetActiveEventsV3Raw> eventCollection;
         try
         {
             eventCollection = JsonConvert.DeserializeObject <ICollection <GetActiveEventsV3Raw> >(fileText) ?? new GetActiveEventsV3Raw[0];
         }
         catch (Exception)
         {
             eventCollection = new GetActiveEventsV3Raw[0];
         }
         cache.AddEvents(eventCollection);
     }
 }