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