示例#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();
        }
 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);
        }
        public T Find(Guid id)
        {
            var aggregate = eventStore.AggregateStream <T>(id);

            return(aggregate);
        }