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)); }
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); }