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.

◆ TryMakeSnapshot()

virtual void Cqrs.Akka.Snapshots.AkkaSnapshotRepository< TAuthenticationToken >.TryMakeSnapshot ( IAggregateRoot< TAuthenticationToken >  aggregate,
IEnumerable< IEvent< TAuthenticationToken >>  uncommittedChanges 
)
protectedvirtual

Calls ISnapshotStrategy<TAuthenticationToken>.ShouldMakeSnapShot on SnapshotStrategy If the IAggregateRoot<TAuthenticationToken> is snapshot-able SnapshotAggregateRoot<TAuthenticationToken,TSnapshot>.GetSnapshot is called The Snapshot.Version is calculated, finally ISnapshotStore.Save is called on SnapshotStore.

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