![]() |
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.
|
An IEventStore<TAuthenticationToken> that uses a local (non-static) IDictionary<TKey,TValue>. This does not manage memory in any way and will continue to grow. Mostly suitable for running tests or short lived processes. More...
Public Member Functions | |
InProcessEventStore () | |
Instantiate a new instance of the InProcessEventStore<TAuthenticationToken> class. More... | |
virtual void | Save (Type aggregateRootType, IEvent< TAuthenticationToken > @event) |
Saves the provided event . More... | |
virtual IEnumerable< IEvent< 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 . More... | |
virtual IEnumerable< IEvent< TAuthenticationToken > > | Get (Type aggregateType, Guid aggregateId, bool useLastEventOnly=false, int fromVersion=-1) |
Gets a collection of IEvent<TAuthenticationToken> for the IAggregateRoot<TAuthenticationToken> of type aggregateType with the ID matching the provided aggregateId . More... | |
virtual IEnumerable< IEvent< TAuthenticationToken > > | GetToVersion (Type aggregateRootType, Guid aggregateId, int version) |
Gets a collection of IEvent<TAuthenticationToken> for the IAggregateRoot<TAuthenticationToken> of type aggregateRootType with the ID matching the provided aggregateId up to and including the provided version . More... | |
virtual IEnumerable< IEvent< TAuthenticationToken > > | GetToVersion< T > (Guid aggregateId, int version) |
Gets a collection of IEvent<TAuthenticationToken> for the T aggregate root with the ID matching the provided aggregateId up to and including the provided version . More... | |
virtual IEnumerable< IEvent< TAuthenticationToken > > | GetToDate (Type aggregateRootType, Guid aggregateId, DateTime versionedDate) |
Gets a collection of IEvent<TAuthenticationToken> for the IAggregateRoot<TAuthenticationToken> of type aggregateRootType with the ID matching the provided aggregateId up to and including the provided versionedDate . More... | |
virtual IEnumerable< IEvent< TAuthenticationToken > > | GetToDate< T > (Guid aggregateId, DateTime versionedDate) |
Gets a collection of IEvent<TAuthenticationToken> for the T aggregate root with the ID matching the provided aggregateId up to and including the provided versionedDate . More... | |
IEnumerable< IEvent< TAuthenticationToken > > | GetBetweenDates (Type aggregateRootType, Guid aggregateId, DateTime fromVersionedDate, DateTime toVersionedDate) |
Gets a collection of IEvent<TAuthenticationToken> for the IAggregateRoot<TAuthenticationToken> of type aggregateRootType with the ID matching the provided aggregateId from and including the provided fromVersionedDate up to and including the provided toVersionedDate . More... | |
IEnumerable< IEvent< TAuthenticationToken > > | GetBetweenDates< T > (Guid aggregateId, DateTime fromVersionedDate, DateTime toVersionedDate) |
Gets a collection of IEvent<TAuthenticationToken> for the T aggregate root with the ID matching the provided aggregateId from and including the provided fromVersionedDate up to and including the provided toVersionedDate . More... | |
virtual IEnumerable< EventData > | Get (Guid correlationId) |
Get all IEvent<TAuthenticationToken> instances for the given correlationId . More... | |
virtual void | Save< T > (IEvent< TAuthenticationToken > @event) |
Saves the provided event . More... | |
Properties | |
IDictionary< Guid, IList< IEvent< TAuthenticationToken > > > | InMemoryDb [get] |
Gets or sets the in-memory storage IDictionary<TKey,TValue>. More... | |
An IEventStore<TAuthenticationToken> that uses a local (non-static) IDictionary<TKey,TValue>. This does not manage memory in any way and will continue to grow. Mostly suitable for running tests or short lived processes.
TAuthenticationToken | The Type of the authentication token. |