示例#1
0
 private void Handle(OrderPlacedEvent evnt)
 {
     _total                     = evnt.OrderTotal;
     _status                    = OrderStatus.Placed;
     _userId                    = evnt.UserId;
     _registrantId              = evnt.UserId;
     _payInfo                   = new PayInfo(0, 0);
     _expressAddressInfo        = evnt.ExpressAddressInfo;
     _reservationExpirationDate = evnt.ReservationExpirationDate;
 }
示例#2
0
 private void Handle(OrderPlacedEvent evnt)
 {
     _id                        = evnt.AggregateRootId;
     _total                     = evnt.OrderTotal;
     _status                    = OrderStatus.Placed;
     _userId                    = evnt.UserId;
     _registrantId              = evnt.UserId;
     _expressAddressInfo        = evnt.ExpressAddressInfo;
     _reservationExpirationDate = evnt.ReservationExpirationDate;
 }