Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> utilising snapshots for optimised rehydration.
More...
|
| | AkkaSnapshotRepository (ISnapshotStore snapshotStore, ISnapshotStrategy< TAuthenticationToken > snapshotStrategy, IAggregateRepository< TAuthenticationToken > repository, IEventStore< TAuthenticationToken > eventStore, IAggregateFactory aggregateFactory) |
| | Instantiates a new instance of SnapshotRepository<TAuthenticationToken>. More...
|
| |
| void | Save< TAggregateRoot > (TAggregateRoot aggregate, int? expectedVersion=null) |
| | Calls TryMakeSnapshot then IAggregateRepository<TAuthenticationToken>.Save<TAggregateRoot> on Repository. More...
|
| |
| TAggregateRoot | Get< TAggregateRoot > (Guid aggregateId, IList< IEvent< TAuthenticationToken >> events=null) |
| | Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot , First using TryRestoreAggregateFromSnapshot<TAggregateRoot>, otherwise via IAggregateRepository<TAuthenticationToken>.Get<TAggregateRoot> on Repository Then does rehydration. More...
|
| |
| 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...
|
| |
| 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...
|
| |
| void | LoadAggregateHistory< TAggregateRoot > (TAggregateRoot aggregate, IList< IEvent< TAuthenticationToken >> events=null, bool throwExceptionOnNoEvents=true) |
| | If events is null, loads the events from IEventStore<TAuthenticationToken>, checks for duplicates and then rehydrates the aggregate with the events. More...
|
| |
Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> utilising snapshots for optimised rehydration.
- Template Parameters
-
| TAuthenticationToken | The Type of authentication token. |