public async Task Handle(OrderPlacedEvent notification, CancellationToken cancellationToken)
        {
            //cutomer action - add order
            await _customerActionEventService.AddOrder(notification.Order, CustomerActionTypeEnum.AddOrder);

            //customer reminder
            await _mediator.Send(new UpdateCustomerReminderHistoryCommand()
            {
                CustomerId = notification.Order.CustomerId, OrderId = notification.Order.Id
            });
        }
Esempio n. 2
0
 public async Task Handle(OrderPaidEvent notification, CancellationToken cancellationToken)
 {
     //customer action event service - paid order
     await _customerActionEventService.AddOrder(notification.Order, CustomerActionTypeEnum.PaidOrder);
 }
Esempio n. 3
0
 public async Task Handle(OrderPlacedEvent notification, CancellationToken cancellationToken)
 {
     //cutomer action - add order
     await _customerActionEventService.AddOrder(notification.Order, CustomerActionTypeEnum.AddOrder);
 }