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