Пример #1
0
        public async Task Reindex()
        {
            var aggregateResult = await _eventStore.AggregateStream(Entity.Current.EntityKey);

            if (!aggregateResult.Success)
            {
                return;
            }

            this.Category = aggregateResult.Value;
            await this.PersistReadModel();
        }
Пример #2
0
 public T Find(Guid id)
 {
     return(eventStore.AggregateStream <T>(id));
 }
Пример #3
0
        public virtual async Task <TAggregate> Find(Guid id)
        {
            var result = await _eventStore.AggregateStream <TAggregate>(id);

            return(result);
        }
Пример #4
0
        public T Find(Guid id)
        {
            var aggregate = eventStore.AggregateStream <T>(id);

            return(aggregate);
        }