public DataUpdateHostedService(IOptions <UpdateOptions> updateOptions, IOptions <MappingOptions> mappingOptions,
                                IOptions <DataCorrectionOptions> dataCorrectionOptions, IOptions <LocalityCollectionOptions> localityCollectorOptions,
                                IAccommodationPreloader accommodationPreloader, ILocationMapper locationMapper, IAccommodationMapper accommodationMapper,
                                IAccommodationDataCorrector accommodationDataCorrector, ILoggerFactory loggerFactory, IHostApplicationLifetime applicationLifetime,
                                ILocalityCandidatesCollector localityCandidatesCollector, TracerProvider tracerProvider, InvalidAccommodationMappingAnalyzer invalidAccommodationMappingAnalyzer,
                                ISupplierOptionsClient supplierOptionsClient)
 {
     _logger = loggerFactory.CreateLogger <DataUpdateHostedService>();
     _accommodationMapper        = accommodationMapper;
     _accommodationPreloader     = accommodationPreloader;
     _locationMapper             = locationMapper;
     _accommodationDataCorrector = accommodationDataCorrector;
     _updateOptions                       = updateOptions.Value;
     _mappingOptions                      = mappingOptions.Value;
     _localityCollectionOptions           = localityCollectorOptions.Value;
     _applicationLifetime                 = applicationLifetime;
     _tracerProvider                      = tracerProvider;
     _invalidAccommodationMappingAnalyzer = invalidAccommodationMappingAnalyzer;
     _supplierOptionsClient               = supplierOptionsClient;
     _localityCandidatesCollector         = localityCandidatesCollector;
     _dataCorrectionOptions               = dataCorrectionOptions.Value;
 }
 public CreateAccommodationCommand(Accommodation accommodation, IAccommodationMapper mapper)
 {
     this.accommodation = accommodation;
     this.mapper        = mapper;
 }
 public AccommodationProxy(IAccommodationMapper mapper,
                           IApiClientFactory <IBookFastFacilityAPI> apiClientFactory)
 {
     this.mapper           = mapper;
     this.apiClientFactory = apiClientFactory;
 }
 public FindAccommodationQuery(Guid accommodationId, IAccommodationMapper mapper)
 {
     this.accommodationId = accommodationId;
     this.mapper          = mapper;
 }
 public AccommodationController(IAccommodationService service, IAccommodationMapper mapper)
 {
     this.service = service;
     this.mapper  = mapper;
 }
예제 #6
0
 public ListAccommodationsQuery(Guid facilityId, IAccommodationMapper mapper)
 {
     this.facilityId = facilityId;
     this.mapper     = mapper;
 }
 public AccommodationDataSource(BookFastContext context, IAccommodationMapper mapper)
 {
     this.context = context;
     this.mapper  = mapper;
 }
 public AccommodationProxy(IAccommodationMapper mapper,
                           IPartitionClientFactory <CommunicationClient <IBookFastFacilityAPI> > partitionClientFactory)
 {
     this.mapper = mapper;
     this.partitionClientFactory = partitionClientFactory;
 }