Пример #1
0
 private void Handle(GoodsBlockDeletedEvent evnt)
 {
     _info = null;
 }
Пример #2
0
 /// <summary>
 /// 更新
 /// </summary>
 /// <param name="info"></param>
 public void Update(GoodsBlockInfo info)
 {
     info.CheckNotNull(nameof(info));
     ApplyEvent(new GoodsBlockUpdatedEvent(info));
 }
Пример #3
0
 private void Handle(GoodsBlockUpdatedEvent evnt)
 {
     _info = evnt.Info;
 }
Пример #4
0
 public GoodsBlock(Guid id, GoodsBlockInfo info) : base(id)
 {
     info.CheckNotNull(nameof(info));
     ApplyEvent(new GoodsBlockCreatedEvent(info));
 }