public ActiveEventEntityUpdater(
     ITableWrapper table,
     IComponentAffectingEntityUpdater <EventEntity> updater,
     ILogger <ActiveEventEntityUpdater> logger)
 {
     _table   = table ?? throw new ArgumentNullException(nameof(table));
     _updater = updater ?? throw new ArgumentNullException(nameof(updater));
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public AggregationStrategy(
     ITableWrapper table,
     IComponentAffectingEntityUpdater <TAggregationEntity> aggregationUpdater,
     ILogger <AggregationStrategy <TChildEntity, TAggregationEntity> > logger)
 {
     _table = table ?? throw new ArgumentNullException(nameof(table));
     _aggregationUpdater = aggregationUpdater ?? throw new ArgumentNullException(nameof(aggregationUpdater));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #3
0
 public AggregationEntityUpdater(
     ITableWrapper table,
     IComponentAffectingEntityUpdater <TChildEntity> aggregatedEntityUpdater,
     StatusAggregatorConfiguration configuration,
     ILogger <AggregationEntityUpdater <TChildEntity, TAggregationEntity> > logger)
 {
     _table = table ?? throw new ArgumentNullException(nameof(table));
     _aggregatedEntityUpdater = aggregatedEntityUpdater
                                ?? throw new ArgumentNullException(nameof(aggregatedEntityUpdater));
     _groupEndDelay = TimeSpan.FromMinutes(configuration?.EventEndDelayMinutes
                                           ?? throw new ArgumentNullException(nameof(configuration)));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }