public SearchDataProvider(IGoogleSearchClient googleSearchClient, IBingSearchClient bingSearchClient)
 {
     _searchClients = new Dictionary <SearchEngine, ISearchClient>
     {
         { SearchEngine.Google, googleSearchClient },
         { SearchEngine.Bing, bingSearchClient }
     };
 }
Ejemplo n.º 2
0
 public SearchProvider(IBingSearchClient bingSearchClient,
                       IGoogleSearchClient googleSearchClient,
                       IMapper mapper,
                       SearchApiDbContext dbContext,
                       ILogger <SearchProvider> logger)
 {
     _bingSearchClient   = bingSearchClient;
     _googleSearchClient = googleSearchClient;
     _mapper             = mapper;
     _dbContext          = dbContext;
     _logger             = logger;
 }