public ServiceRunner( IOcrProcessingService carService, IAdapterConfiguration adapterConfiguration, IQueueConsumer<RecogniseBatchCourtesyAmountRequest> carRequestQueueConsumer) { this.adapterConfiguration = adapterConfiguration; this.carRequestQueueConsumer = carRequestQueueConsumer; this.carService = carService; }
public ServiceRunner( IOcrProcessingService carService, IAdapterConfiguration adapterConfiguration, IQueueConsumer <RecogniseBatchCourtesyAmountRequest> carRequestQueueConsumer) { this.adapterConfiguration = adapterConfiguration; this.carRequestQueueConsumer = carRequestQueueConsumer; this.carService = carService; }
public CarRequestMessageProcessor( IOcrProcessingService carService, IMapper <RecogniseBatchCourtesyAmountRequest, OcrBatch> requestMapper, IExchangePublisher <RecogniseBatchCourtesyAmountResponse> exchangePublisher, IMapper <OcrBatch, RecogniseBatchCourtesyAmountResponse> responseMapper) { this.carService = carService; this.requestMapper = requestMapper; this.exchangePublisher = exchangePublisher; this.responseMapper = responseMapper; }
protected override void OnStart(string[] args) { log.Information("Car Service Started"); var imageFileFolder = ConfigurationManager.AppSettings["adapter:ImageFileFolder"]; var imageFilenameTemplate = ConfigurationManager.AppSettings["adapter:ImageFilenameTemplate"]; ocrService = new A2iACombinedTableService(ocrConfiguration); ProcessingService.OcrService = ocrService; ProcessingService.ImageFilePath = imageFileFolder; ProcessingService.ImageFileNameTemplate = imageFilenameTemplate; ProcessingService.Run(); }