コード例 #1
0
 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);
 }
コード例 #2
0
        public SearchClientProvider(ISearchFilterProvider searchFilterProvider,
                                    ILogger logger, string serviceName, string key)
        {
            _searchFilterProvider = searchFilterProvider;
            _logger = logger;
            var searchCredentials = new SearchCredentials(key);

            _searchServiceClient = new SearchServiceClient(serviceName, searchCredentials);
        }
コード例 #3
0
 public SearchRepository(ILogger logger, ISearchFilterProvider searchFilterProvider)
 {
     _logger = logger;
     _searchFilterProvider = searchFilterProvider;
 }