public static void AddStats(CacheRefreshStatistics stats, Exception e)
 {
     if (SettingsViewModel.Instance.SyncLogEnabled)
     {
         if (statsLog.Count == 10)
         {
             statsLog.RemoveAt(index);
         }
         statsLog.Insert(index, stats);
         index = index++ / 10;
     }
 }
Beispiel #2
0
 public SyncCompletedEventArgs(bool cancelled, Exception error, CacheRefreshStatistics statistics)
 {
     this.Cancelled  = cancelled;
     this.Error      = error;
     this.Statistics = statistics;
 }