public IInvokeActionsOnAggregates <TAggregate> With(AggregateId id)
        {
            var aggregateEvents = _eventStore.RetrieveFor(id.Value);

            _aggregate = BuildAggregateFromHistory(id.Value, aggregateEvents);

            return(this);
        }
Beispiel #2
0
        public ITellEventsToProcessManagers <TProcessManager> With(CorrelationId id)
        {
            var processEvents = _eventStore.RetrieveFor(id.Value);

            _processManager = FromHistory(id.Value, processEvents);

            return(this);
        }
        public IReplayEvents EventsWithAggregateId(string aggregateId)
        {
            _currentAggregateEvents = _eventStore.RetrieveFor <TAggregate>(aggregateId);

            return(this);
        }