public SearchStatusService( ISearchIndexClientWrapper searchIndex, ISearchIndexClientWrapper hijackIndex, ISearchParametersBuilder parametersBuilder, IAuxiliaryDataCache auxiliaryDataCache, ISecretRefresher secretRefresher, IOptionsSnapshot <SearchServiceConfiguration> options, IAzureSearchTelemetryService telemetryService, ILogger <SearchStatusService> logger) { _searchIndex = searchIndex ?? throw new ArgumentNullException(nameof(searchIndex)); _hijackIndex = hijackIndex ?? throw new ArgumentNullException(nameof(hijackIndex)); _parametersBuilder = parametersBuilder ?? throw new ArgumentNullException(nameof(parametersBuilder)); _auxiliaryDataCache = auxiliaryDataCache ?? throw new ArgumentNullException(nameof(auxiliaryDataCache)); _secretRefresher = secretRefresher ?? throw new ArgumentNullException(nameof(secretRefresher)); _options = options ?? throw new ArgumentNullException(nameof(options)); _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SecretRefresherBackgroundService(ISecretRefresher refresher) { _refresher = refresher ?? throw new ArgumentNullException(nameof(refresher)); }