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 >()

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

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.

Implements Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>