public T GetById(TKey id) { var events = _eventStore.GetEventOfStream(GetStreamName(id)).Result; var aggregate = _aggregateFactory.Reconstruct <T>(events); return(aggregate); }
public T GetById(TKey id) { var events = _eventStore.GetEventOfStream(GetStreamName(id)).Result; var aggregate = _aggregateFactory.Reconstruct <T>(events); return(aggregate); }