示例#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));
 }