예제 #1
0
 public ReservationIndexRepository(IElasticLowLevelClient client, ReservationsApiEnvironment environment, IElasticSearchQueries elasticQueries, ILogger <ReservationIndexRepository> logger)
 {
     _client         = client;
     _environment    = environment;
     _elasticQueries = elasticQueries;
     _logger         = logger;
 }
 public IndexRegistry(IElasticLowLevelClientWrapper client, IElasticSearchQueries queries, ReservationJobsEnvironment environment)
 {
     _client  = client;
     _queries = queries;
     Name     = environment.EnvironmentName + queries.ReservationIndexLookupName;
     SetCurrentIndexName();
 }
예제 #3
0
 public ReservationIndexRepository(IElasticLowLevelClientWrapper client, IIndexRegistry registry, IElasticSearchQueries elasticSearchQueries,
                                   ReservationJobsEnvironment environment)
 {
     IndexNamePrefix       = $"{environment.EnvironmentName}-reservations-";
     _client               = client;
     _registry             = registry;
     _elasticSearchQueries = elasticSearchQueries;
 }