Example #1
0
 public IndexerController(
     IIndexerQueryService queryService
     , QueryConfig queryConfig
     )
 {
     _queryService   = queryService;
     _queryTimeoutMs = queryConfig.QueryTimeoutMs;
 }
Example #2
0
        public CachedIndexerQueryService(
            ILogService <IndexerQueryService> logger
            , Func <Indexer, IIndexer> getIndexer
            , QueryConfig queryConfig
            , IMemoryCache memoryCache
            )
        {
            _queryService = new IndexerQueryService(logger, getIndexer);

            _queryConfig = queryConfig;
            _memoryCache = memoryCache;
        }