CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ Get< TAggregateRoot >()

TAggregateRoot Cqrs.Domain.UnitOfWork< TAuthenticationToken >.Get< TAggregateRoot > ( Guid  id,
int?  expectedVersion = null,
bool  useSnapshots = false 
)

Get an item from the IUnitOfWork<TAuthenticationToken> if it has already been loaded or get it from the IAggregateRepository<TAuthenticationToken>.

Implements Cqrs.Domain.IUnitOfWork< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>