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