Example #1
0
 public SearchController(
     IAuxiliaryDataCache auxiliaryDataCache,
     ISearchService searchService,
     ISearchStatusService statusService)
 {
     _auxiliaryDataCache = auxiliaryDataCache ?? throw new ArgumentNullException(nameof(auxiliaryDataCache));
     _searchService      = searchService ?? throw new ArgumentNullException(nameof(searchService));
     _statusService      = statusService ?? throw new ArgumentNullException(nameof(statusService));
 }
 public AuxiliaryFileReloader(
     IAuxiliaryDataCache cache,
     ISystemTime systemTime,
     IOptionsSnapshot <SearchServiceConfiguration> options,
     ILogger <AuxiliaryFileReloader> logger)
 {
     _cache      = cache ?? throw new ArgumentNullException(nameof(cache));
     _systemTime = systemTime ?? throw new ArgumentNullException(nameof(systemTime));
     _options    = options ?? throw new ArgumentNullException(nameof(options));
     _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #3
0
 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));
 }