Interface ISnapshotStore
Stores the most recent Snapshot for replay and IAggregateRoot<TAuthenticationToken> rehydration on a SnapshotAggregateRoot<TAuthenticationToken, TSnapshot>.
Namespace: Cqrs.Snapshots
Assembly: Cqrs.dll
Syntax
public interface ISnapshotStore
Methods
Get<TAggregateRoot>(Guid)
Get the latest Snapshot from storage.
Declaration
Snapshot Get<TAggregateRoot>(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The identifier of the IAggregateRoot<TAuthenticationToken> to get the most recent Snapshot of. |
Returns
Type | Description |
---|---|
Snapshot | The most recent Snapshot of |
Type Parameters
Name | Description |
---|---|
TAggregateRoot | The System.Type of IAggregateRoot<TAuthenticationToken> to find a snapshot for. |
Save(Snapshot)
Saves the provided snapshot
into storage.
Declaration
void Save(Snapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
Snapshot | snapshot | the Snapshot to save and store. |