public ReviewsExceptionHandler(
     IRabbitMqProducer <ReviewsExceptionPayload> producer,
     IOptions <ReviewsConfiguration> configuration,
     IHttpContextAccessor accessor)
 {
     this.producer      = producer;
     this.configuration = configuration.Value;
     this.accessor      = accessor;
 }
Esempio n. 2
0
 public BasicDataController(ICouponService couponService, IBannerService bannerService, IProductInformationService productService, IOrderService orderService,
                            IOrderDetailService orderDetailService, IProductDetailService productDetailService,
                            ITransactionService transactionService, ILogger <BasicDataController> logger,
                            IRabbitMqProducer mqProducer)
 {
     _couponService        = couponService;
     _bannerService        = bannerService;
     _orderService         = orderService;
     _productService       = productService;
     _orderDetailService   = orderDetailService;
     _productDetailService = productDetailService;
     _transactionService   = transactionService;
     _logger     = logger;
     _mqProducer = mqProducer;
 }
 public OrderService(IRabbitMqProducer <OrderCommand> producer)
 {
     _producer = producer;
 }
Esempio n. 4
0
 public LogBackgroundTask(IRabbitMqProducer <LogIntegrationEvent> producer) => _producer = producer;
Esempio n. 5
0
 public RabbitmqMessagePublisher(IRabbitMqProducer rabbitMqProducer, IReadOnlyCollection <ConsumerDescriptor> mapping)
 {
     this.rabbitMqProducer = rabbitMqProducer;
     this.mapping          = mapping;
 }
 /// <summary>
 /// Initializes a new instance of the <seealso cref="ProjectController"/> WebAPI controller.
 /// </summary>
 /// <param name="projectDetailRepository">Injectable custom <seealso cref="IProjectDetailRepository"/> instance for manaing project details.</param>
 public ProjectController(IProjectDetailRepository projectDetailRepository, IRabbitMqProducer rabbitMqProducer)
 {
     _projectDetailRepository = projectDetailRepository;
     _rabbitMqProducer        = rabbitMqProducer;
 }
Esempio n. 7
0
 public RabbitmqMessagePublisher(IRabbitMqProducer rabbitMqProducer)
 {
     this.rabbitMqProducer = rabbitMqProducer;
 }