Exemplo n.º 1
0
 public void GetPayments(ICollector collector)
 {
     try
     {
         log.InfoFormat("Start collecting with collector {0}", collector.GetType());
         IList <Payment> payments = collector.GetPayments();
         log.InfoFormat("Finished collecting with collector {0}. {1} transactions collected.", collector.GetType(), payments.Count);
         AddPayments(payments);
     }
     catch (Exception ex)
     {
         log.Error(String.Format("error in collector {0}.", collector.GetType()), ex);
     }
 }
Exemplo n.º 2
0
 public void GetPayments(ICollector collector)
 {
     try
     {
         log.InfoFormat("Start collecting with collector {0}", collector.GetType());
         IList<Payment> payments = collector.GetPayments();
         log.InfoFormat("Finished collecting with collector {0}. {1} transactions collected.", collector.GetType(), payments.Count);
         AddPayments(payments);
     }
     catch (Exception ex)
     {
         log.Error(String.Format("error in collector {0}.", collector.GetType()), ex);
     }
 }