public BlockchainLogProcessor( IEventLogProxy eventLogProxy, IEnumerable <ILogProcessor> logProcessors, IEnumerable <NewFilterInput> filters = null) { _eventLogProxy = eventLogProxy ?? throw new ArgumentNullException(nameof(eventLogProxy)); _logProcessors = logProcessors ?? throw new ArgumentNullException(nameof(logProcessors)); _filters = filters?.ToList() ?? new List <NewFilterInput>(); if (_filters.Count == 0) { _filters.Add(new NewFilterInput()); } }
public EventLogTracker(IEventLogProxy eventLog) { this.eventLog = eventLog; }
public BlockchainLogProcessor( IEventLogProxy eventLogProxy, IEnumerable <ILogProcessor> logProcessors, NewFilterInput filter) : this(eventLogProxy, logProcessors, filter == null ? null : new NewFilterInput[] { filter }) { }