Example #1
0
 public AggregateSubBatchCommandHandler(
     ILogger <AggregateSubBatchCommandHandler> logger,
     ISubAggregateRepository subAggregateRepository,
     ISubAggregationService subAggregationService,
     ISubQueryRepository queryRepository)
 {
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
     this.subAggregateRepository = subAggregateRepository ?? throw new ArgumentNullException(nameof(subAggregateRepository));
     this.subAggregationService  = subAggregationService ?? throw new ArgumentNullException(nameof(subAggregationService));
     this.queryRepository        = queryRepository ?? throw new ArgumentNullException(nameof(queryRepository));
 }
        public SubScanningService(IRedisConnectionWrapper redisConnectionWrapper, IDateTimeProvider dateTimeProvider, ISubQueryRepository subQueryRepository)
        {
            if (redisConnectionWrapper is null)
            {
                throw new ArgumentNullException(nameof(redisConnectionWrapper));
            }

            redisDatabase = redisConnectionWrapper.ConnectionMultiplexer.GetDatabase();

            this.subQueryRepository = subQueryRepository ?? throw new ArgumentNullException(nameof(subQueryRepository));
            this.dateTimeProvider   = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
        }