Пример #1
0
        public void Handle(CreateInventoryItem command)
        {
            var aggregate = new InventoryAggregateRoot(command.Id, command.Name);

            _eventStore.Save(aggregate.Id, aggregate.GetUncommittedChanges(), -1);
        }
Пример #2
0
        public void Handle(CreateInventoryItem command)
        {
            var aggregate = new InventoryAggregateRoot(command.Id, command.Name);

            _eventStore.Save(aggregate, -1);
        }