Beispiel #1
0
 public DefaultCatchUpStreamGapStrategy(
     ILoggerFactory loggerFactory,
     IStreamGapStrategyConfigurationSettings settings,
     IReadonlyStreamStore streamStore,
     IClock clock)
 {
     Settings     = settings ?? throw new ArgumentNullException(nameof(settings));
     _streamStore = streamStore ?? throw new ArgumentNullException(nameof(streamStore));
     _clock       = clock ?? throw new ArgumentNullException(nameof(clock));
     _logger      = loggerFactory?.CreateLogger <DefaultCatchUpStreamGapStrategy>() ?? throw new ArgumentNullException(nameof(loggerFactory));
 }
 public DefaultSubscriptionStreamGapStrategy(IStreamGapStrategyConfigurationSettings settings)
 => Settings = settings ?? throw new ArgumentNullException(nameof(settings));