public async Task Handle(OrderCompletedEvent domainEvent) { var order = await _orderRepository.Get(domainEvent.OrderId); await _denormalizer.UpdateOrderStatus(order); await _ordersDenormalizer.UpdateOrder(order); }
public async Task Handle(OrderDiscardedEvent domainEvent) { var order = await _orderRepository.Get(domainEvent.OrderId); await _denormalizer.DiscardOrder(order); await _ordersDenormalizer.UpdateOrder(order); }