public RabbitMQManager(IConfiguration configuration, IMobileRechargeService mobileRechargeService) { _configuration = configuration; _mobileRechargeService = mobileRechargeService; _username = _configuration["RabbitMQ:Username"]; _password = _configuration["RabbitMQ:Password"]; _hostname = _configuration["RabbitMQ:Hostname"]; var eShopExchange = _configuration.GetSection("RabbitMQ:Exchanges").GetChildren().First(); _exchangeName = eShopExchange["Name"]; _mobileRechargeQueueName = eShopExchange["Queues:MobileRechargeQueue:Name"]; _mobileRechargeRoutingKey = eShopExchange["Queues:MobileRechargeQueue:RoutingKey"]; _orderStatusQueueName = eShopExchange["Queues:OrderStatusQueue:Name"]; _orderStatusRoutingKey = eShopExchange["Queues:OrderStatusQueue:RoutingKey"]; }
public RechargeController(IMobileRechargeService mobileRechargeService) { _mobileRechargeService = mobileRechargeService; }
public PaymentController(IMobileRechargeService mobileRechargeService, IPaymentService paymentService, IElectricityService electricityService) { _mobileRechargeService = mobileRechargeService; _paymentService = paymentService; _electricityService = electricityService; }