예제 #1
0
 internal void Rename(RenamePerson cmd)
 {
     if (State.Name == cmd.Name)
     {
         return;
     }
     Apply(new PersonRenamed()
     {
         Id = cmd.Id, Name = cmd.Name
     });
 }
예제 #2
0
 async Task When(RenamePerson c)
 {
     await IdempotentlyUpdateAgg(c.Id, agg => agg.Rename(c));
 }