CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ ShouldMakeSnapShot()

virtual bool Cqrs.Snapshots.DefaultSnapshotStrategy< TAuthenticationToken >.ShouldMakeSnapShot ( IAggregateRoot< TAuthenticationToken >  aggregate,
IEnumerable< IEvent< TAuthenticationToken >>  uncommittedChanges = null 
)
virtual

Checks IsSnapshotable and if it is, also checks if the calculated version number would be exactly dividable by GetSnapshotInterval.

Parameters
aggregateThe IAggregateRoot<TAuthenticationToken> to check.
uncommittedChangesA collection of uncommited changes to assess. If null the aggregate will be asked to provide them.

Implements Cqrs.Snapshots.ISnapshotStrategy< TAuthenticationToken >.