public EventHandlerFactory(
     IEventSubscriptionStateRepository stateFactory,
     IEventContractQueryConfigurationRepository contractQueryFactory = null,
     IContractQuery contractQueryHandler = null,
     IEventAggregatorRepository eventAggregatorRepository             = null,
     IEthGetTransactionByHash getTransactionProxy                     = null,
     ISubscriberQueueRepository subscriberQueueRepository             = null,
     ISubscriberQueueFactory subscriberQueueFactory                   = null,
     ISubscriberSearchIndexRepository subscriberSearchIndexRepository = null,
     ISubscriberSearchIndexFactory subscriberSearchIndexFactory       = null,
     IEventRuleRepository eventRuleRepository = null,
     ISubscriberStorageRepository subscriberStorageRepository = null,
     ISubscriberStorageFactory subscriberRepositoryFactory    = null)
 {
     StateFactory                    = stateFactory;
     ContractQueryFactory            = contractQueryFactory;
     ContractQueryHandler            = contractQueryHandler;
     EventAggregatorRepository       = eventAggregatorRepository;
     GetTransactionProxy             = getTransactionProxy;
     SubscriberQueueRepository       = subscriberQueueRepository;
     SubscriberQueueFactory          = subscriberQueueFactory;
     SubscriberSearchIndexRepository = subscriberSearchIndexRepository;
     SubscriberSearchIndexFactory    = subscriberSearchIndexFactory;
     EventRuleRepository             = eventRuleRepository;
     SubscriberStorageRepository     = subscriberStorageRepository;
     SubscriberRepositoryFactory     = subscriberRepositoryFactory;
 }
 public ContractQueryEventHandler(
     IEventSubscription subscription,
     long id,
     IContractQuery contractQueryProxy,
     ContractQueryConfiguration queryConfig) : base(subscription, id)
 {
     Proxy         = contractQueryProxy ?? throw new System.ArgumentNullException(nameof(contractQueryProxy));
     Configuration = queryConfig ?? throw new System.ArgumentNullException(nameof(queryConfig));
 }
 public ContractsController(IMapper mapper,
                            ITemplateQuery templateQuery,
                            IContractQuery contractQuery,
                            IContractRepository contractRepository)
 {
     _mapper             = mapper;
     _templateQuery      = templateQuery;
     _contractQuery      = contractQuery;
     _contractRepository = contractRepository;
 }