public HomeService() { _index = new IndexRepository(dbContext); _home = new HomeRepository(dbContext); _video = new VideoRepository(dbContext); _Topic = new TopicRepository(dbContext); }
public IndexService(IIndexRepository indexRepository, IIndexIncludePermissionRepository indexIncludePermissionRepository, IIndexExcludePermissionRepository indexExcludePermissionRepository) { IndexRepository = indexRepository; IndexIncludePermissionRepository = indexIncludePermissionRepository; IndexExcludePermissionRepository = indexExcludePermissionRepository; }
public WorkerController(IAsyncRepository repo, IIndexRepository indexRepo) { httpHandler = new HttpHandler(); repository = repo; indexRepository = indexRepo; Task.WaitAll(repository.Initialisation, indexRepository.Initialisation); }
public Index(IIndexRepository repository) : base(false, null) { Guard.NotNull(repository, nameof(repository)); this.repository = repository; this.dbreeze = repository.GetDbreezeEngine(); }
public IndexStoreLoop(ConcurrentChain chain, IIndexRepository indexRepository, IndexSettings indexSettings, ChainState chainState, IndexBlockPuller blockPuller, IIndexStoreCache cache, INodeLifetime nodeLifetime, IAsyncLoopFactory asyncLoopFactory, ILoggerFactory loggerFactory, IDateTimeProvider dateTimeProvider) : base(asyncLoopFactory, blockPuller, indexRepository, cache, chain, chainState, indexSettings, nodeLifetime, loggerFactory, dateTimeProvider) { }
public Index(IIndexRepository repository, string name, bool multiValue, string builder, string[] dependencies = null) : base(multiValue, builder, dependencies) { Guard.NotNull(repository, nameof(repository)); this.repository = repository; this.dbreeze = repository.GetDbreezeEngine(); this.Name = name; this.Table = repository.GetIndexTableName(name); try { this.Compile(); } catch (Exception e) { throw new IndexStoreException("Could not compile index '" + name + "': " + e.Message); } }
public static Index Parse(IIndexRepository repository, string json, string table = null) { var index = new Index(repository); JsonConvert.PopulateObject(json, index); if (table != null) { index.Table = table; } try { index.Compile(); } catch (Exception e) { throw new IndexStoreException("Could not compile index '" + index.Name + "': " + e.Message); } return(index); }
public Executor( IPageDownloader downloader, ICrawledRepository crawledRepository, IIndexRepository indexRepository) { _pageDownloader = downloader ?? throw new ArgumentNullException(nameof(IPageDownloader)); _crawledRepository = crawledRepository ?? throw new ArgumentNullException(nameof(ICrawledRepository)); _indexRepository = indexRepository ?? throw new ArgumentNullException(nameof(IIndexRepository)); _termIdGenerator = new IntegerIdGenerator(); _pageIdGenerator = new IntegerIdGenerator(); // Build data flow _bufferBlock = new BufferBlock <Uri>(); _downloadBlock = new TransformBlock <Uri, PageInfo>(BuildDownloadTask()); _indexBlock = new TransformBlock <PageInfo, string>(BuildIndexTask()); var linkOptions = new DataflowLinkOptions { PropagateCompletion = true }; _bufferBlock.LinkTo(_downloadBlock, linkOptions); _downloadBlock.LinkTo(_indexBlock, linkOptions); }
public IndexStoreCache(IIndexRepository indexRepository, IMemoryCache memoryCache, ILoggerFactory loggerFactory) : base(indexRepository, memoryCache, loggerFactory) { }
public IndexStoreCache(IIndexRepository indexRepository, ILoggerFactory loggerFactory) : this(indexRepository, new MemoryCache(new MemoryCacheOptions()), loggerFactory) { }
public IndexService(IIndexRepository <TModel> indexRepository) { this.indexRepository = indexRepository; }
public IndexStoreCache(IIndexRepository indexRepository, IMemoryCache memoryCache, IDateTimeProvider dateTimeProvider, ILoggerFactory loggerFactory) : base(indexRepository, memoryCache, dateTimeProvider, loggerFactory) { }
public IndexStoreCache(IIndexRepository indexRepository, IMemoryCache memoryCache) : base(indexRepository, memoryCache) { }
public IndexService(IIndexRepository <TEntity> indexRepository, IMapper mapper, IMemoryCache cash) { _indexRepository = indexRepository; _mapper = mapper; _cash = cash; }
public IndexService(IIndexRepository indexRepository) { _indexRepository = indexRepository; }
public IndexService() { IndexRepository = new IndexRepository(); IndexIncludePermissionRepository = new IndexIncludePermissionRepository(); IndexExcludePermissionRepository = new IndexExcludePermissionRepository(); }
public IndexStoreBehavior(ConcurrentChain chain, IIndexRepository indexRepository, IIndexStoreCache indexStoreCache, ILoggerFactory loggerFactory) : base(chain, indexRepository, indexStoreCache, loggerFactory) { }
public IndexStoreBehavior(ConcurrentChain chain, IIndexRepository blockRepository, IIndexStoreCache blockStoreCache, ILoggerFactory loggerFactory) : base(chain, blockRepository as Features.BlockStore.IBlockRepository, blockStoreCache as Features.BlockStore.IBlockStoreCache, loggerFactory) { }
public DocumentsRankingService(IIndexRepository IndexRepository) { this.IndexRepository = IndexRepository; }
public IndexStoreFeature(ConcurrentChain chain, IConnectionManager connectionManager, Signals.Signals signals, IIndexRepository indexRepository, IIndexStoreCache indexStoreCache, IndexBlockPuller blockPuller, IndexStoreLoop indexStoreLoop, IndexStoreManager indexStoreManager, IndexStoreSignaled indexStoreSignaled, INodeLifetime nodeLifetime, NodeSettings nodeSettings, ILoggerFactory loggerFactory, IndexSettings indexSettings) : base(chain, connectionManager, signals, indexRepository, indexStoreCache, blockPuller, indexStoreLoop, indexStoreManager, indexStoreSignaled, nodeLifetime, nodeSettings, loggerFactory, indexSettings, name: "IndexStore") { }
public IndexStoreManager(ConcurrentChain chain, IConnectionManager connection, IIndexRepository indexRepository, IDateTimeProvider dateTimeProvider, NodeSettings nodeArgs, ChainState chainState, IndexStoreLoop indexStoreLoop) : base(chain, connection, indexRepository, dateTimeProvider, nodeArgs, chainState, indexStoreLoop) { }
public IndexStoreSignaled(IndexStoreLoop storeLoop, ConcurrentChain chain, IndexSettings indexSettings, ChainState chainState, IConnectionManager connection, INodeLifetime nodeLifetime, IAsyncLoopFactory asyncLoopFactory, IIndexRepository indexRepository, ILoggerFactory loggerFactory) : base(storeLoop, chain, indexSettings, chainState, connection, nodeLifetime, asyncLoopFactory, indexRepository, loggerFactory, "IndexStore") { }
public SearchController(IIndexRepository repo) { repository = repo; repository.Initialisation.Wait(); }
public IndexStoreCache(IIndexRepository indexRepository, IDateTimeProvider dateTimeProvider, ILoggerFactory loggerFactory) : this(indexRepository, new MemoryCache(new MemoryCacheOptions()), dateTimeProvider, loggerFactory) { }