![]() |
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.
|
IEnumerable<IEvent<TAuthenticationToken> > Cqrs.Events.IEventStore< TAuthenticationToken >.Get | ( | Type | aggregateRootType, |
Guid | aggregateId, | ||
bool | useLastEventOnly = false , |
||
int | fromVersion = -1 |
||
) |
Gets a collection of IEvent<TAuthenticationToken> for the IAggregateRoot<TAuthenticationToken> of type aggregateRootType with the ID matching the provided aggregateId .
aggregateRootType | Type of the IAggregateRoot<TAuthenticationToken> the IEvent<TAuthenticationToken> was raised in. |
aggregateId | The IAggregateRoot<TAuthenticationToken>.Id of the IAggregateRoot<TAuthenticationToken>. |
useLastEventOnly | Loads only the last eventIEvent<TAuthenticationToken>. |
fromVersion | Load events starting from this version |
Implemented in Cqrs.Events.InProcessEventStore< TAuthenticationToken >, Cqrs.MongoDB.Events.MongoDbEventStore< TAuthenticationToken >, Cqrs.Events.EventStore< TAuthenticationToken >, Cqrs.EventStore.EventStore< TAuthenticationToken >, Cqrs.Events.MemoryCacheEventStore< TAuthenticationToken >, Cqrs.Azure.BlobStorage.Events.TableStorageEventStore< TAuthenticationToken >, Cqrs.Azure.DocumentDb.Events.AzureDocumentDbEventStore< TAuthenticationToken >, Cqrs.Azure.BlobStorage.Events.BlobStorageEventStore< TAuthenticationToken >, and Cqrs.Azure.Storage.Events.TableStorageEventStore< TAuthenticationToken >.