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.Sql.Events.ReplicatedSqlEventStore< TAuthenticationToken > Class Template Reference

A simplified SqlServer based EventStore<TAuthenticationToken> that uses LinqToSql and follows a rigid schema that also replicates to multiple connections, but only reads from one connection. More...

+ Inheritance diagram for Cqrs.Sql.Events.ReplicatedSqlEventStore< TAuthenticationToken >:

Public Member Functions

 ReplicatedSqlEventStore (IEventBuilder< TAuthenticationToken > eventBuilder, IEventDeserialiser< TAuthenticationToken > eventDeserialiser, ILogger logger, IConfigurationManager configurationManager)
 
- Public Member Functions inherited from Cqrs.Events.SqlEventStore< TAuthenticationToken >
 SqlEventStore (IEventBuilder< TAuthenticationToken > eventBuilder, IEventDeserialiser< TAuthenticationToken > eventDeserialiser, ILogger logger, IConfigurationManager configurationManager)
 
override IEnumerable< IEvent< TAuthenticationToken > > Get (Type aggregateRootType, Guid aggregateId, bool useLastEventOnly=false, int fromVersion=-1)
 
override IEnumerable< EventDataGet (Guid correlationId)
 
- Public Member Functions inherited from Cqrs.Events.EventStore< TAuthenticationToken >
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)
 

Protected Member Functions

override void PersistEvent (EventData eventData)
 
- Protected Member Functions inherited from Cqrs.Events.SqlEventStore< TAuthenticationToken >
virtual DataContext CreateDbDataContext ()
 
virtual Table< EventDataGetEventStoreTable (DataContext dbDataContext)
 
virtual void Add (DataContext dbDataContext, EventData data)
 
- Protected Member Functions inherited from Cqrs.Events.EventStore< TAuthenticationToken >
 EventStore (IEventBuilder< TAuthenticationToken > eventBuilder, IEventDeserialiser< TAuthenticationToken > eventDeserialiser, ILogger logger)
 
virtual string GenerateStreamName (Type aggregateRootType, IEvent< TAuthenticationToken > @event)
 
virtual string GenerateStreamName (Type aggregateRootType, Guid aggregateId)
 

Properties

IEnumerable< string > WritableConnectionStrings [get]
 
- Properties inherited from Cqrs.Events.SqlEventStore< TAuthenticationToken >
IConfigurationManager ConfigurationManager [get]
 
- Properties inherited from Cqrs.Events.EventStore< TAuthenticationToken >
IEventBuilder< TAuthenticationToken > EventBuilder [get, set]
 
IEventDeserialiser< TAuthenticationToken > EventDeserialiser [get, set]
 
ITelemetryHelper TelemetryHelper [get, set]
 
ILogger Logger [get]
 

Additional Inherited Members

- Protected Attributes inherited from Cqrs.Events.EventStore< TAuthenticationToken >
const string CqrsEventStoreStreamNamePattern = "{0}/{1}"
 

Detailed Description

A simplified SqlServer based EventStore<TAuthenticationToken> that uses LinqToSql and follows a rigid schema that also replicates to multiple connections, but only reads from one connection.