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); } }
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(); }
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); }
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); } }