Interface ISnapshotStrategy
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
aggregateAggregateRootsnapshotCountint