Example #1
0
 public RevalidationJobStateService(
     IRevalidationStateService state,
     RevalidationConfiguration config,
     ILogger <RevalidationJobStateService> logger)
 {
     _state  = state ?? throw new ArgumentNullException(nameof(state));
     _config = config ?? throw new ArgumentNullException(nameof(config));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public RevalidationThrottler(
     IRevalidationJobStateService jobState,
     IPackageRevalidationStateService packageState,
     IGalleryService gallery,
     RevalidationConfiguration config,
     ILogger <RevalidationThrottler> logger)
 {
     _jobState     = jobState ?? throw new ArgumentNullException(nameof(jobState));
     _packageState = packageState ?? throw new ArgumentNullException(nameof(packageState));
     _gallery      = gallery ?? throw new ArgumentNullException(nameof(gallery));
     _config       = config ?? throw new ArgumentNullException(nameof(config));
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public RevalidationService(
     IRevalidationJobStateService jobState,
     IRevalidationThrottler throttler,
     IServiceScopeFactory scopeFactory,
     RevalidationConfiguration config,
     ITelemetryService telemetryService,
     ILogger <RevalidationService> logger)
 {
     _jobState         = jobState ?? throw new ArgumentNullException(nameof(jobState));
     _throttler        = throttler ?? throw new ArgumentNullException(nameof(throttler));
     _scopeFactory     = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory));
     _config           = config ?? throw new ArgumentNullException(nameof(config));
     _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
     _logger           = logger ?? throw new ArgumentNullException(nameof(logger));
 }