Esempio n. 1
0
 public TableSearchService(
     CloudTableClient client,
     ISearchResponseBuilder responseBuilder)
 {
     _table           = client?.GetTableReference(TableName) ?? throw new ArgumentNullException(nameof(client));
     _responseBuilder = responseBuilder ?? throw new ArgumentNullException(nameof(responseBuilder));
 }
Esempio n. 2
0
 public DatabaseSearchService(
     IContext context,
     IFrameworkCompatibilityService frameworks,
     ISearchResponseBuilder searchBuilder)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     _frameworks = frameworks ?? throw new ArgumentNullException(nameof(frameworks));
     _searchBuilder = searchBuilder ?? throw new ArgumentNullException(nameof(searchBuilder));
 }
Esempio n. 3
0
 public AzureSearchService(
     IIndexOperationBuilder operationBuilder,
     ISearchIndexClientWrapper searchIndex,
     ISearchIndexClientWrapper hijackIndex,
     ISearchResponseBuilder responseBuilder,
     IAzureSearchTelemetryService telemetryService)
 {
     _operationBuilder = operationBuilder ?? throw new ArgumentNullException(nameof(operationBuilder));
     _searchIndex      = searchIndex ?? throw new ArgumentNullException(nameof(searchIndex));
     _hijackIndex      = hijackIndex ?? throw new ArgumentNullException(nameof(hijackIndex));
     _responseBuilder  = responseBuilder ?? throw new ArgumentNullException(nameof(responseBuilder));
     _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
 }