Interface ISnapshotStore
Defines the methods needed from the snapshot store.
public interface ISnapshotStore
- Extension Methods
Methods
Box(Guid)
Copies a snapshot to offline storage and removes it from online logs.
void Box(Guid id)
Parameters
idGuid
Count(Guid)
Counts the number of snapshots in the store for an aggregate.
int Count(Guid id)
Parameters
idGuid
Returns
Delete(Guid, string)
Deletes a snapshot from the store.
void Delete(Guid id, string type)
Parameters
Get(Guid)
Gets a snapshot from the store.
Snapshot Get(Guid id)
Parameters
idGuid
Returns
Save(Snapshot)
Saves a snapshot to the store.
void Save(Snapshot snapshot)
Parameters
snapshotSnapshot
Unbox(Guid)
Retrieves an aggregate from offline storage and returns only its most recent state.
Snapshot Unbox(Guid id)
Parameters
idGuid