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.

◆ LoadAggregate< TAggregateRoot >()

virtual TAggregateRoot Cqrs.Domain.AggregateRepository< TAuthenticationToken >.LoadAggregate< TAggregateRoot > ( Guid  id,
IList< IEvent< TAuthenticationToken >>  events = null 
)
protectedvirtual

Calls IAggregateFactory.Create to get a, TAggregateRoot and then calls LoadAggregateHistory<TAggregateRoot>.

Template Parameters
TAggregateRootThe Type of IAggregateRoot<TAuthenticationToken>.
Parameters
idThe id of the TAggregateRoot to create.
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.
Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>