Пример #1
0
        public void Handle(UpdateMyThing command)
        {
            MyThing t = _repo.GetAggregate(command.Id);

            t.ApplyEvent(new MyThingUpdated(t.AggregateId, command.Title));
            _repo.SaveAggregate(t);
        }