Ejemplo n.º 1
0
 public DictionaryAggregator(ITourRepository tourRepository, IOtherTourRepository otherTourRepository, IMemoryCache memoryCache)
 {
     _tourRepository      = tourRepository;
     _otherTourRepository = otherTourRepository;
     _memoryCache         = memoryCache;
 }
Ejemplo n.º 2
0
        // 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();
        }
Ejemplo n.º 3
0
 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));
 }
Ejemplo n.º 4
0
 public OtherProvider(IOtherTourRepository otherTourRepository, IPriceCalculator priceCalculator, ISettings settings)
 {
     _otherTourRepository = otherTourRepository;
     _priceCalculator     = priceCalculator;
     _settings            = settings;
 }