コード例 #1
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));
 }
コード例 #2
0
 public SecretRefresherBackgroundService(ISecretRefresher refresher)
 {
     _refresher = refresher ?? throw new ArgumentNullException(nameof(refresher));
 }