예제 #1
0
 public async Task SendOrderDoneMessage(CarOrderConfirmedMessage model)
 {
     _kafkaService.SendEvent(KafkaConstants.Order_Topic, KafkaConstants.Car_Order_Done_Event,
                             _messageSerializer.Serialize(new CarOrderConfirmedMessage()
     {
         TransactionId = model.TransactionId,
         CarRentId     = model.CarRentId
     }));
 }
예제 #2
0
        public async Task ConfirmCarOrder(CarOrderConfirmedMessage model)
        {
            await _orderRepository.ConfirmCarOrder(model.TransactionId, model.CarRentId);

            HandleConfirmedOrder(model.TransactionId);
        }