public DictionaryAggregator(ITourRepository tourRepository, IOtherTourRepository otherTourRepository, IMemoryCache memoryCache) { _tourRepository = tourRepository; _otherTourRepository = otherTourRepository; _memoryCache = memoryCache; }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ITourRepository tourRepository, IOtherTourRepository otherTourRepository) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); tourRepository.Populate(); otherTourRepository.Populate(); }
public OtherSearchService(IMessageBusClient messageBusClient, IOtherTourRepository tourRepository, IOtherDictionariesRepository dictionariesRepository) { _messageBusClient = messageBusClient ?? throw new ArgumentNullException(nameof(messageBusClient)); _tourRepository = tourRepository ?? throw new ArgumentNullException(nameof(tourRepository)); _dictionariesRepository = dictionariesRepository ?? throw new ArgumentNullException(nameof(dictionariesRepository)); }
public OtherProvider(IOtherTourRepository otherTourRepository, IPriceCalculator priceCalculator, ISettings settings) { _otherTourRepository = otherTourRepository; _priceCalculator = priceCalculator; _settings = settings; }