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

IEnumerable<IEvent<TAuthenticationToken> > Cqrs.EventStore.EventStore< TAuthenticationToken >.Get< T > ( Guid  aggregateId,
bool  useLastEventOnly = false,
int  fromVersion = -1 
)

Gets a collection of IEvent<TAuthenticationToken> for the T aggregate root with the ID matching the provided aggregateId .

Template Parameters
TThe Type of the IAggregateRoot<TAuthenticationToken> the IEvent<TAuthenticationToken> was raised in.
Parameters
aggregateIdThe IAggregateRoot<TAuthenticationToken>.Id of the IAggregateRoot<TAuthenticationToken>.
useLastEventOnlyLoads only the last eventIEvent<TAuthenticationToken>.
fromVersionLoad events starting from this version

The value of fromVersion is zero based but the internals indexing of the EventStore is offset by StreamPosition.Start. Adjust the value of fromVersion by StreamPosition.Start

Implements Cqrs.Events.IEventStore< TAuthenticationToken >.