public AccommodationDataCorrectionManager(NakijinContext context, MultilingualDataHelper multilingualDataHelper, AccommodationDataCorrectionHelper dataCorrectionHelper, AccommodationChangePublisher accommodationChangePublisher, IAccommodationChangeLogCollectorService accommodationChangeLogCollectorService, ISupplierOptionsClient supplierOptionsClient) { _context = context; _multilingualDataHelper = multilingualDataHelper; _dataCorrectionHelper = dataCorrectionHelper; _accommodationChangePublisher = accommodationChangePublisher; _accommodationChangeLogCollectorService = accommodationChangeLogCollectorService; _supplierOptionsClient = supplierOptionsClient; }
public AccommodationPreloader(NakijinContext context, IConnectorClient connectorClient, ILoggerFactory loggerFactory, IOptions <StaticDataLoadingOptions> options, ILocationNameNormalizer locationNameNormalizer, TracerProvider tracerProvider, ISupplierOptionsClient supplierOptionsClient) { _context = context; _logger = loggerFactory.CreateLogger <AccommodationPreloader>(); _options = options.Value; _connectorClient = connectorClient; _locationNameNormalizer = locationNameNormalizer; _tracerProvider = tracerProvider; _supplierOptionsClient = supplierOptionsClient; }
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; }