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
            });
        }
Exemplo n.º 2
0
 public async Task Handle(OrderPaidEvent notification, CancellationToken cancellationToken)
 {
     //customer action event service - paid order
     await _customerActionEventService.AddOrder(notification.Order, CustomerActionTypeEnum.PaidOrder);
 }
Exemplo n.º 3
0
 public async Task Handle(OrderPlacedEvent notification, CancellationToken cancellationToken)
 {
     //cutomer action - add order
     await _customerActionEventService.AddOrder(notification.Order, CustomerActionTypeEnum.AddOrder);
 }