public FactoryFetcher( IStartBlockProvider startBlockProvider, IRecentBlockProvider recentBlockProvider, IEventsFetcher <NewExchangeEventDTO> newExchangeEventsFetcher, IExchangeProcessor exchangeExchangeProcessor, FetcherSettings settings, ILogger <FactoryFetcher> logger) { _startBlockProvider = startBlockProvider; _recentBlockProvider = recentBlockProvider; _newExchangeEventsFetcher = newExchangeEventsFetcher; _exchangeExchangeProcessor = exchangeExchangeProcessor; _settings = settings; _logger = logger; }
public ExchangeFetcher( IExchangeRepository exchangeRepository, IStartBlockService startBlockService, IRecentBlockProvider recentBlockProvider, ExchangeFetcherSettings fetcherSettings, Func <string, ExchangeEventsFetcher> exchangeEventsFetcherFactory, IExchangeEventsProcessor exchangeEventsProcessor, ILogger <ExchangeFetcher> logger) { _exchangeRepository = exchangeRepository; _startBlockService = startBlockService; _recentBlockProvider = recentBlockProvider; _fetcherSettings = fetcherSettings; _exchangeEventsFetcherFactory = exchangeEventsFetcherFactory; _exchangeEventsProcessor = exchangeEventsProcessor; _logger = logger; }