Exemple #1
0
 public ValidateCodelineProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, configuration.ValidateCodelineQueueName, configuration.ValidateTransactionExchangeName)
 {
     ValidateCodelineRequest = new ValidateCodelineRequestSubscriber(configuration, log, Consumer,
                                                                     InvalidExchange, InvalidRoutingKey, RecoverableRoutingKey);
     ValidateCodelineResponse = new ValidateCodelineResponsePollingJob(configuration, log, Exchange);
 }
Exemple #2
0
 protected SubscriberBase(DipsConfiguration configuration, ILogger logger, RabbitMqConsumer consumer, RabbitMqExchange invalidExchange, string invalidRoutingKey, string recoverableRoutingKey)
 {
     Log                   = logger;
     Configuration         = configuration;
     Consumer              = consumer;
     InvalidExchange       = invalidExchange;
     InvalidRoutingKey     = invalidRoutingKey;
     RecoverableRoutingKey = recoverableRoutingKey;
 }
        public ValidateTransactionRequestSubscriber(DipsConfiguration configuration, ILogger logger, RabbitMqConsumer consumer, RabbitMqExchange invalidExchange, string invalidRoutingKey, string recoverableRoutingKey)
            : base(configuration, logger, consumer, invalidExchange, invalidRoutingKey, recoverableRoutingKey)
        {
            var transactionHelper = new BatchTransactionRequestMapHelper(new DateTimeProvider(), Configuration);

            QueueMapper   = new ValidateBatchTransactionRequestToDipsQueueMapper(transactionHelper);
            VoucherMapper = new ValidateBatchTransactionRequestToDipsNabChqScanPodMapper(transactionHelper);
            DbIndexMapper = new ValidateBatchTransactionRequestToDipsDbIndexMapper(transactionHelper);
        }
Exemple #4
0
        public GenerateCorrespondingVoucherRequestSubscriber(DipsConfiguration configuration, ILogger logger,
                                                             RabbitMqConsumer consumer, RabbitMqExchange invalidExchange, string invalidRoutingKey,
                                                             string recoverableRoutingKey)
            : base(configuration, logger, consumer, invalidExchange, invalidRoutingKey, recoverableRoutingKey)
        {
            var helper = new GenerateCorrespondingVoucherRequestMapHelper(new DateTimeProvider(), Configuration);

            QueueMapper   = new GenerateCorrespondingVoucherRequestToDipsQueueMapper(helper);
            VoucherMapper = new GenerateCorrespondingVoucherRequestToDipsNabChqScanPodMapper(helper);
            DbIndexMapper = new GenerateCorrespondingVoucherRequestToDipsDbIndexMapper(helper);
        }
Exemple #5
0
 public ProcessingService(DipsConfiguration configuration, ILogger log, string consumerName, string exchangeName)
 {
     Configuration         = configuration;
     Log                   = log;
     InvalidRoutingKey     = Configuration.InvalidRoutingKey;
     RecoverableRoutingKey = Configuration.RecoverableRoutingKey;
     ConsumerName          = consumerName;
     ExchangeName          = exchangeName;
     InitializeQueueConnection();
     Consumer.ConnectionLost += Consumer_ConnectionLost;
 }
 public GenerateCorrespondingVoucherProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, configuration.GenerateCorrespondingVoucherQueueName, configuration.GenerateCorrespondingVoucherExchangeName)
 {
     GenerateCorrespondingVoucherRequest  = new GenerateCorrespondingVoucherRequestSubscriber(configuration, log, Consumer, InvalidExchange, InvalidRoutingKey, RecoverableRoutingKey);
     GenerateCorrespondingVoucherResponse = new GenerateCorrespondingVoucherResponsePollingJob(configuration, log, Exchange);
 }
 public CheckThirdPartyProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, configuration.CheckThirdPartyQueueName, configuration.CheckThirdPartyExchangeName)
 {
     CheckThirdPartyRequest  = new CheckThirdPartyRequestSubscriber(configuration, log, Consumer, InvalidExchange, InvalidRoutingKey, RecoverableRoutingKey);
     CheckThirdPartyResponse = new CheckThirdPartyResponsePollingJob(configuration, log, Exchange);
 }
 public CorrectTransactionProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, configuration.CorrectTransactionQueueName, configuration.CorrectTransactionExchangeName)
 {
     CorrectTransactionRequest  = new CorrectTransactionRequestSubscriber(configuration, log, Consumer, InvalidExchange, InvalidRoutingKey, RecoverableRoutingKey);
     CorrectTransactionResponse = new CorrectTransactionResponsePollingJob(configuration, log, Exchange);
 }
Exemple #9
0
 public ProcessingService(DipsConfiguration configuration, ILogger log)
 {
     Configuration            = configuration;
     Log                      = log;
     ValidateCodelineResponse = new ValidateCodelineResponsePollingJob(configuration, log);
 }
 public ValidateTransctionRequestProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, null, configuration.ValidateTransactionExchangeName)
 {
     ValidateTransactionRequest = new ValidateTransactionRequestSubscriber(configuration, log, Consumer, InvalidExchange,
                                                                           InvalidRoutingKey, RecoverableRoutingKey);
 }
 public GetVouchersInformationResponseSubscriber(DipsConfiguration configuration, ILogger logger, RabbitMqConsumer consumer, RabbitMqExchange invalidExchange, string invalidRoutingKey, string recoverableRoutingKey)
     : base(configuration, logger, consumer, invalidExchange, invalidRoutingKey, recoverableRoutingKey)
 {
 }
Exemple #12
0
 public GetVouchersInformationProcessingService(DipsConfiguration configuration, ILogger log)
     : base(configuration, log, configuration.GetPoolVouchersQueueName, configuration.GetPoolVouchersExchangeName)
 {
     GetVoucherInformationResponse = new GetVouchersInformationResponseSubscriber(configuration, log, Consumer, InvalidExchange, InvalidRoutingKey, RecoverableRoutingKey);
     GetVoucherInformationRequest  = new GetVouchersInformationRequestPollingJob(configuration, log, Exchange);
 }