Пример #1
0
 private void ListenTransactions(object source, ElapsedEventArgs e)
 {
     try
     {
         _logger.Info("Executing transaction execution");
         TransactionExecutor.ExecuteTransaction();
     }
     catch (Exception exception)
     {
         String message = exception.Message + "\n" + exception.StackTrace;
         _logger.Error(message);
     }
 }
Пример #2
0
 private void ListenInterest(object source, ElapsedEventArgs e)
 {
     _logger.Info("Interests added to current Saving accounts");
     TransactionExecutor.InterestAddition();
 }