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(); }
public ReservationIndexRepository(IElasticLowLevelClientWrapper client, IIndexRegistry registry, IElasticSearchQueries elasticSearchQueries, ReservationJobsEnvironment environment) { IndexNamePrefix = $"{environment.EnvironmentName}-reservations-"; _client = client; _registry = registry; _elasticSearchQueries = elasticSearchQueries; }