//init
        public SubscribersFetcher(ILogger logger, SenderSettings senderSettings
                                  , ISubscriberQueries <TKey> subscriberQueries)
        {
            _logger            = logger;
            _subscriberQueries = subscriberQueries;

            ItemsQueryLimit = senderSettings.SubscribersFetcherItemsQueryLimit;
        }
Ejemplo n.º 2
0
 //init
 public DefaultEventHandler(ISubscribersFetcher <TKey> subscribersFetcher
                            , IDispatchBuilder <TKey> dispatchBuilder, IScheduler <TKey> scheduler
                            , ISubscriberQueries <TKey> subscriberQueries)
 {
     _subscribersFetcher = subscribersFetcher;
     _dispatchBuilder    = dispatchBuilder;
     _scheduler          = scheduler;
     _subscriberQueries  = subscriberQueries;
 }