Пример #1
0
 private void Handle(OrderGoodsCreatedEvent evnt)
 {
     _orderId = evnt.OrderId;
     _info    = evnt.Info;
     _status  = OrderGoodsStatus.Normal;
     _serviceExpirationDate = evnt.ServiceExpirationDate;
 }
Пример #2
0
        private DateTime _serviceExpirationDate;                    //售后服务自动过期日期

        public OrderGoods(Guid id, Guid orderId, OrderGoodsInfo info) : base(id)
        {
            ApplyEvent(new OrderGoodsCreatedEvent(orderId,
                                                  info,
                                                  DateTime.Now.Add(ConfigSettings.OrderGoodsServiceAutoExpiration)));
        }