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);
 }