Example #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);
     }
 }
Example #2
0
 private void ListenInterest(object source, ElapsedEventArgs e)
 {
     _logger.Info("Interests added to current Saving accounts");
     TransactionExecutor.InterestAddition();
 }