Ejemplo 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);
     }
 }
Ejemplo n.º 2
0
        protected void Create(ICollector collector)
        {
            if (collector == null)
            {
                return;
            }

            Logger.Info($"Creating collector of type ${collector.GetType().Name}...");
            SearchCancellation.Cancel();

            Collector?.Dispose();
            Collector     = collector;
            EventAnalyzer = new EventAnalyzer();
            OnCollectorCreated();

            StartUpdateLoop();
        }
Ejemplo n.º 3
0
 protected override void Search(IList <AtomicReaderContext> leaves, Weight weight, ICollector collector)
 {
     Assert.AreEqual(-1, collector.GetType().Name.IndexOf("OutOfOrder", StringComparison.Ordinal));
     base.Search(leaves, weight, collector);
 }
Ejemplo n.º 4
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);
     }
 }