CQRS.NET  2.1
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
Cqrs.Events.EventStore< TAuthenticationToken > Class Template Referenceabstract
+ Inheritance diagram for Cqrs.Events.EventStore< TAuthenticationToken >:

Public Member Functions

virtual void Save< T > (IEvent< TAuthenticationToken > @event)
 
virtual void Save (Type aggregateRootType, IEvent< TAuthenticationToken > @event)
 
virtual IEnumerable< IEvent< TAuthenticationToken > > Get< T > (Guid aggregateId, bool useLastEventOnly=false, int fromVersion=-1)
 
abstract IEnumerable< IEvent< TAuthenticationToken > > Get (Type aggregateRootType, Guid aggregateId, bool useLastEventOnly=false, int fromVersion=-1)
 
abstract IEnumerable< EventDataGet (Guid correlationId)
 

Protected Member Functions

 EventStore (IEventBuilder< TAuthenticationToken > eventBuilder, IEventDeserialiser< TAuthenticationToken > eventDeserialiser, ILogger logger)
 
virtual string GenerateStreamName (Type aggregateRootType, IEvent< TAuthenticationToken > @event)
 
virtual string GenerateStreamName (Type aggregateRootType, Guid aggregateId)
 
abstract void PersistEvent (EventData eventData)
 

Protected Attributes

const string CqrsEventStoreStreamNamePattern = "{0}/{1}"
 

Properties

IEventBuilder< TAuthenticationToken > EventBuilder [get, set]
 
IEventDeserialiser< TAuthenticationToken > EventDeserialiser [get, set]
 
ITelemetryHelper TelemetryHelper [get, set]
 
ILogger Logger [get]