Table of Contents

Interface ISnapshotStrategy

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

Defines the strategy to use for determining when a snapshot should be taken.

public interface ISnapshotStrategy
Extension Methods

Methods

ShouldTakeSnapShot(AggregateRoot, int)

Returns true if a snapshot should be taken for the aggregate.

bool ShouldTakeSnapShot(AggregateRoot aggregate, int snapshotCount)

Parameters

aggregate AggregateRoot
snapshotCount int

Returns

bool