public LogsProcessorBuilder(IEthApiContractService ethApiContractService, Action <FilterInputBuilder <TEventDto> > configureFilterBuilder, params string[] contractAddresses) : base(ethApiContractService) { var filterBuilder = new FilterInputBuilder <TEventDto>(); configureFilterBuilder(filterBuilder); Filters.Add(filterBuilder.Build(contractAddresses)); }
public ILogsProcessorBuilder Filter <TEventDto>(Action <FilterInputBuilder <TEventDto> > configureFilter) where TEventDto : class, IEventDTO, new() { var filterBuilder = new FilterInputBuilder <TEventDto>(); configureFilter(filterBuilder); var filter = filterBuilder.Build(ContractAddresses); AddOrReplaceContractAddressFilter(filter); return(Filter(filter)); }