Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> utilising snapshots for optimised rehydration.
More...
|
| SnapshotRepository (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...
|
|
Provides basic repository methods for operations with instances of IAggregateRoot<TAuthenticationToken> utilising snapshots for optimised rehydration.
- Template Parameters
-
TAuthenticationToken | The Type of authentication token. |