public EventIndexProcessor( IEventIndexer <TEvent> indexer, IEventFunctionProcessor functionProcessor = null, int logsPerIndexBatch = 1) { Indexer = indexer; _functionProcessor = functionProcessor; _logsPerIndexBatch = logsPerIndexBatch; }
public EventIndexProcessor( IEventIndexer <TEvent> indexer, IEventFunctionProcessor functionProcessor = null, int logsPerIndexBatch = 1, Predicate <EventLog <TEvent> > predicate = null) { Indexer = indexer; _functionProcessor = functionProcessor; _logsPerIndexBatch = logsPerIndexBatch; Predicate = predicate ?? new Predicate <EventLog <TEvent> >((l) => true); }
public AzureEventIndexingProcessor( IWeb3 web3, IAzureSearchService searchService, IEventFunctionProcessor functionProcessor, Func <BigInteger, BigInteger?, IBlockProgressService> blockProgressServiceCallBack = null, uint maxBlocksPerBatch = 2, IEnumerable <NewFilterInput> filters = null, uint minimumBlockConfirmations = 0) : base(web3, searchService, functionProcessor, blockProgressServiceCallBack, maxBlocksPerBatch, filters, minimumBlockConfirmations) { AzureSearchService = searchService; }
public ElasticEventIndexingProcessor( IBlockchainProxyService blockchainProxyService, IElasticSearchService searchService, IEventFunctionProcessor functionProcessor, Func <ulong, ulong?, IBlockProgressService> blockProgressServiceCallBack = null, uint maxBlocksPerBatch = 2, IEnumerable <NewFilterInput> filters = null, uint minimumBlockConfirmations = 0) : base(blockchainProxyService, searchService, functionProcessor, blockProgressServiceCallBack, maxBlocksPerBatch, filters, minimumBlockConfirmations) { this._elasticSearchService = searchService; }
public EventIndexingProcessor( IWeb3 web3, ISearchService searchService, IEventFunctionProcessor functionProcessor, Func <BigInteger, BigInteger?, IBlockProgressService> blockProgressServiceCallBack = null, uint maxBlocksPerBatch = 2, IEnumerable <NewFilterInput> filters = null, uint minimumBlockConfirmations = 0) { SearchService = searchService; Web3 = web3; MaxBlocksPerBatch = maxBlocksPerBatch; Filters = filters; MinimumBlockConfirmations = minimumBlockConfirmations; BlockProgressServiceCallBack = blockProgressServiceCallBack; LogProcessors = new List <ILogProcessor>(); _indexers = new List <IIndexer>(); FunctionProcessor = functionProcessor ?? new EventFunctionProcessor(Web3); }
public EventIndexingProcessor( IBlockchainProxyService blockchainProxyService, ISearchService searchService, IEventFunctionProcessor functionProcessor, Func <ulong, ulong?, IBlockProgressService> blockProgressServiceCallBack = null, uint maxBlocksPerBatch = 2, IEnumerable <NewFilterInput> filters = null, uint minimumBlockConfirmations = 0) { SearchService = searchService; BlockchainProxyService = blockchainProxyService; MaxBlocksPerBatch = maxBlocksPerBatch; Filters = filters; MinimumBlockConfirmations = minimumBlockConfirmations; BlockProgressServiceCallBack = blockProgressServiceCallBack; LogProcessors = new List <ILogProcessor>(); _indexers = new List <IIndexer>(); FunctionProcessor = functionProcessor ?? new EventFunctionProcessor(BlockchainProxyService); }