Пример #1
0
        public T GetById(TKey id)
        {
            var events    = _eventStore.GetEventOfStream(GetStreamName(id)).Result;
            var aggregate = _aggregateFactory.Reconstruct <T>(events);

            return(aggregate);
        }