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