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.

◆ Get< TAggregateRoot >()

TAggregateRoot Cqrs.Domain.IAggregateRepository< TAuthenticationToken >.Get< TAggregateRoot > ( Guid  aggregateId,
IList< IEvent< TAuthenticationToken >>  events = null 
)

Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot .

Template Parameters
TAggregateRootThe Type of the IAggregateRoot<TAuthenticationToken>.
Parameters
aggregateIdThe identifier of the IAggregateRoot<TAuthenticationToken> to retrieve.
eventsA collection of IEvent<TAuthenticationToken> to replay on the retrieved IAggregateRoot<TAuthenticationToken>. If null, the IEventStore<TAuthenticationToken> will be used to retrieve a list of IEvent<TAuthenticationToken> for you.

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

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>