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.

◆ Save< TAggregateRoot >()

void Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.Save< TAggregateRoot > ( TAggregateRoot  aggregate,
int?  expectedVersion = null 
)

Save and persist the provided aggregate , optionally providing the version number the IAggregateRoot<TAuthenticationToken> is expected to be at.

Template Parameters
TAggregateRootThe Type of the IAggregateRoot<TAuthenticationToken>.
Parameters
aggregateThe IAggregateRoot<TAuthenticationToken> to save and persist.
expectedVersionThe version number the IAggregateRoot<TAuthenticationToken> is expected to be at.

Implemented in Cqrs.Cache.CacheRepository< TAuthenticationToken >, Cqrs.Akka.Snapshots.AkkaSnapshotRepository< TAuthenticationToken >, Cqrs.Domain.AggregateRepository< TAuthenticationToken >, and Cqrs.Snapshots.SnapshotRepository< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>