public SearchClientProvider(ISearchFilterProvider searchFilterProvider, ILogger logger, string serviceName, string key) { _serviceName = serviceName; _searchFilterProvider = searchFilterProvider; _logger = logger; _azureKeyCredential = new AzureKeyCredential(key); _searchServiceClient = new SearchIndexClient(_serviceName.GetSearchServiceUri(), _azureKeyCredential); }
public SearchClientProvider(ISearchFilterProvider searchFilterProvider, ILogger logger, string serviceName, string key) { _searchFilterProvider = searchFilterProvider; _logger = logger; var searchCredentials = new SearchCredentials(key); _searchServiceClient = new SearchServiceClient(serviceName, searchCredentials); }
public SearchRepository(ILogger logger, ISearchFilterProvider searchFilterProvider) { _logger = logger; _searchFilterProvider = searchFilterProvider; }