Table of Contents

Interface ISnapshotStore

Namespace
Shift.Common.Timeline.Snapshots
Assembly
Shift.Common.dll

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

id Guid

Count(Guid)

Counts the number of snapshots in the store for an aggregate.

int Count(Guid id)

Parameters

id Guid

Returns

int

Delete(Guid, string)

Deletes a snapshot from the store.

void Delete(Guid id, string type)

Parameters

id Guid
type string

Get(Guid)

Gets a snapshot from the store.

Snapshot Get(Guid id)

Parameters

id Guid

Returns

Snapshot

Save(Snapshot)

Saves a snapshot to the store.

void Save(Snapshot snapshot)

Parameters

snapshot Snapshot

Unbox(Guid)

Retrieves an aggregate from offline storage and returns only its most recent state.

Snapshot Unbox(Guid id)

Parameters

id Guid

Returns

Snapshot