Example #1
0
 /// <summary>
 /// public constructor
 /// </summary>
 /// <param name="indexName">The index name in Elasticsearch</param>
 /// <param name="elasticBand">An instance of the ElasticBand which internally does all of the work.</param>
 public ElasticRepository(string indexName, IElasticBand elasticBand)
 {
     _elasticBand = elasticBand;
     IndexName    = indexName;
 }
 public AddCollectionsDocumentFilter(IElasticBand elasticBand)
 {
     _elasticBand = elasticBand;
 }
Example #3
0
 public ElasticScheduledTaskRepository(IElasticBand elasticBand) : base("scheduledtasks", elasticBand)
 {
 }
 public CollectionDefinitionRepository(IElasticBand elasticBand) : base(CollectionsIndex.Name, elasticBand)
 {
 }
 public ElasticObjectRepository(IElasticBand elasticBand) : base("test_index", elasticBand)
 {
 }
Example #6
0
 public CollectionController(ILogger <CollectionController> logger, IElasticBand elasticBand, IElasticRepository <CollectionDefinition> collectionRepository)
 {
     _logger               = logger;
     _elasticBand          = elasticBand;
     _collectionRepository = collectionRepository;
 }