Пример #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));
 }