![]()  | 
  
    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. 
   | 
 
| 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.
| TAggregateRoot | The Type of the IAggregateRoot<TAuthenticationToken>. | 
| aggregate | The IAggregateRoot<TAuthenticationToken> to save and persist. | 
| expectedVersion | The 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 >.
| TAggregateRoot | : | IAggregateRoot<TAuthenticationToken> |