public SupplierIndexItemIndexer(ISupplierRepository supplierRepository, ILogger <BasePagedIndexer <SupplierIndexItem, SupplierDbModel> > logger, IElasticSearchService elasticSearchService, IIndexConverter <SupplierIndexItem, SupplierDbModel> converter, IPagedIndexerConfiguration configuration) : base(logger, elasticSearchService, converter, configuration) { _supplierRepository = supplierRepository; }
public CategoryIndexItemIndexer(ICategoryRepository categoryRepository, ILogger <BasePagedIndexer <CategoryIndexItem, CategoryDbModel> > logger, IElasticSearchService elasticSearchService, IIndexConverter <CategoryIndexItem, CategoryDbModel> converter, IPagedIndexerConfiguration configuration) : base(logger, elasticSearchService, converter, configuration) { _categoryRepository = categoryRepository; }
protected BasePagedIndexer(ILogger <BasePagedIndexer <TIndex, TEntity> > logger, IElasticSearchService elasticSearchService, IIndexConverter <TIndex, TEntity> converter, IPagedIndexerConfiguration configuration) : base(logger, elasticSearchService, converter) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); if (_configuration.PageSize <= 0) { throw new InvalidOperationException("Configuration page size must be superior to zero"); } }