Ejemplo n.º 1
0
 public Task Handle(OrderPaymentRecorded @event, CancellationToken cancellationToken)
 {
     return(commandBus.Send(
                SendPackage.Create(
                    @event.OrderId,
                    @event.ProductItems.Select(pi => new ProductItem(pi.ProductId, pi.Quantity)).ToList()
                    )
                ));
 }