public void OnBatchSaved(PendingUpdatesManager.BatchSavedInfo batchInfo)
 {
     lock (syncRoot)
     {
         LastBatchInfos.Add(batchInfo);
         if (LastBatchInfos.Count > 20)
         {
             LastBatchInfos.RemoveAt(0);
         }
     }
 }
Beispiel #2
0
        private static void PendingUpdatesManager_OnBatchSaved(PendingUpdatesManager.BatchSavedInfo batchInfo)
        {
            var message = $"Batch saved on the {batchInfo.Retries} try. Quanta count: {batchInfo.QuantaCount}; effects count: {batchInfo.EffectsCount}.";

            if (batchInfo.Retries > 1)
            {
                logger.Warn(message);
            }
            else
            {
                logger.Trace(message);
            }
            PerformanceStatisticsManager?.OnBatchSaved(batchInfo);
        }