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.

◆ GetToDate< TAggregateRoot >()

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

Retrieves an IAggregateRoot<TAuthenticationToken> of type TAggregateRoot up to and including the provided versionedDate .

Template Parameters
TAggregateRootThe Type of the IAggregateRoot<TAuthenticationToken>.
Parameters
aggregateIdThe identifier of the IAggregateRoot<TAuthenticationToken> to retrieve.
versionedDateLoad events up-to and including from this DateTime
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.Cache.CacheRepository< TAuthenticationToken >, Cqrs.Domain.AggregateRepository< TAuthenticationToken >, and Cqrs.Snapshots.SnapshotRepository< TAuthenticationToken >.

Type Constraints
TAggregateRoot :IAggregateRoot<TAuthenticationToken>