示例#1
0
        public IInvokeActionsOnAggregates <TAggregate> With(AggregateId id)
        {
            var aggregateEvents = _eventStore.RetrieveFor(id.Value);

            _aggregate = BuildAggregateFromHistory(id.Value, aggregateEvents);

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

            _processManager = FromHistory(id.Value, processEvents);

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

            return(this);
        }