示例#1
0
 public void When(TaskNameChanged e)
 {
     writer.Update(e.Id, v =>
     {
         v.Name = e.NewName;
         return v;
     });
 }
示例#2
0
 private void When(TaskNameChanged e)
 {
     Name = e.NewName;
 }