Пример #1
0
 private void SetPerformanceCounters(List <SyncChange> changes)
 {
     try
     {
         var inserts = changes.Count(c => c.Operation == Operation.insert);
         var deletes = changes.Count(c => c.Operation == Operation.delete);
         var updates = changes.Count(c => c.Operation == Operation.update);
         PerformanceCounters.AddRowsInserted(inserts);
         PerformanceCounters.AddRowsDeleted(deletes);
         PerformanceCounters.AddRowsUpdated(updates);
     }
     catch (Exception exception)
     {
         exception.WriteToApplicationLog();
     }
 }