public PackageService( [NotNull] NuGetListConfiguration deploymentConfiguration, [NotNull] ICustomMemoryCache memoryCache, [NotNull] IKeyValueConfiguration keyValueConfiguration, [NotNull] ILogger logger, [NotNull] CustomHttpClientFactory httpClientFactory) { _deploymentConfiguration = deploymentConfiguration ?? throw new ArgumentNullException(nameof(deploymentConfiguration)); _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); _keyValueConfiguration = keyValueConfiguration ?? throw new ArgumentNullException(nameof(keyValueConfiguration)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); }
public MonitoringService( [NotNull] ILogger logger, [NotNull] IHttpClientFactory httpClientFactory, [NotNull] IPackageService packageService, TimeoutHelper timeoutHelper, NuGetListConfiguration nuGetListConfiguration, IApplicationSettingsStore applicationSettingsStore, ICustomMemoryCache customMemoryCache) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); _packageService = packageService ?? throw new ArgumentNullException(nameof(packageService)); _timeoutHelper = timeoutHelper; _nuGetListConfiguration = nuGetListConfiguration; _applicationSettingsStore = applicationSettingsStore; _customMemoryCache = customMemoryCache; }