Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> using an IEventStore<TAuthenticationToken> that also publishes events once saved.
More...
|
| | AggregateRepository (IAggregateFactory aggregateFactory, IEventStore< TAuthenticationToken > eventStore, IEventPublisher< TAuthenticationToken > publisher, ICorrelationIdHelper correlationIdHelper, IConfigurationManager configurationManager) |
| | Instantiates a new instance of AggregateRepository<TAuthenticationToken> More...
|
| |
| virtual void | Save< TAggregateRoot > (TAggregateRoot aggregate, int? expectedVersion=null) |
| | Save and persist the provided aggregate , optionally providing the version number the IAggregateRoot<TAuthenticationToken> is expected to be at. More...
|
| |
| virtual TAggregateRoot | Get< TAggregateRoot > (Guid aggregateId, IList< IEvent< TAuthenticationToken >> events=null) |
| | Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot . More...
|
| |
| virtual TAggregateRoot | GetToVersion< TAggregateRoot > (Guid aggregateId, int version, IList< IEvent< TAuthenticationToken >> events=null) |
| | Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided version . More...
|
| |
| virtual TAggregateRoot | GetToDate< TAggregateRoot > (Guid aggregateId, DateTime versionedDate, IList< IEvent< TAuthenticationToken >> events=null) |
| | Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided versionedDate . More...
|
| |
| virtual void | LoadAggregateHistory< TAggregateRoot > (TAggregateRoot aggregate, IList< IEvent< TAuthenticationToken >> events=null, bool throwExceptionOnNoEvents=true) |
| | If events is null, loads the events from EventStore, checks for duplicates and then rehydrates the aggregate with the events. More...
|
| |
| virtual void | LoadAggregateHistoryToVersion< TAggregateRoot > (TAggregateRoot aggregate, int version, IList< IEvent< TAuthenticationToken >> events=null, bool throwExceptionOnNoEvents=true) |
| | If events is null, loads the events from EventStore, checks for duplicates and then rehydrates the aggregate with the events. More...
|
| |
| virtual void | LoadAggregateHistoryToDate< TAggregateRoot > (TAggregateRoot aggregate, DateTime versionedDate, IList< IEvent< TAuthenticationToken >> events=null, bool throwExceptionOnNoEvents=true) |
| | If events is null, loads the events from EventStore, checks for duplicates and then rehydrates the aggregate with the events. More...
|
| |
Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> using an IEventStore<TAuthenticationToken> that also publishes events once saved.
- Template Parameters
-
| TAuthenticationToken | The Type of authentication token. |