Ejemplo n.º 1
0
 private void Handle(OrderItemAdded evnt)
 {
     _items.Add(new OrderItem(evnt.OrderId, evnt.ProductId, evnt.Price, evnt.Amount));
 }
Ejemplo n.º 2
0
 public void Handle(OrderItemAdded evnt)
 {
     _connection.Insert(evnt, "eventsourcing_sample_orderitem", _transaction);
 }