C# Class Composable.CQRS.EventSourcing.MicrosoftSQLServer.SqlServerEventStore

Inheritance: IEventStore
Show file Open project: mlidbom/Composable.Monolithic Class Usage Examples

Public Properties

Property Type Description
ConnectionString string

Public Methods

Method Description
ClearCache ( ) : void
DeleteEvents ( System.Guid aggregateId ) : void
Dispose ( ) : void
GetAggregateHistory ( System.Guid aggregateId ) : IEnumerable
GetAggregateHistoryForUpdate ( System.Guid aggregateId ) : IEnumerable
PersistMigrations ( ) : void
ResetDB ( ) : void
ResetDB ( string connectionString ) : void
SaveEvents ( IEnumerable events ) : void
SqlServerEventStore ( string connectionString, ISingleContextUseGuard usageGuard, IEventNameMapper nameMapper = null, IEnumerable migrations = null ) : System
StreamAggregateIdsInCreationOrder ( Type eventBaseType = null ) : IEnumerable
StreamEvents ( int batchSize, Action handleEvents ) : void

Private Methods

Method Description
GetAggregateHistoryInternal ( System.Guid aggregateId, bool takeWriteLock ) : IEnumerable
IsRecoverableSqlException ( Exception exception ) : bool
IsRefactoringEvent ( AggregateRootEvent @event ) : bool
StreamEvents ( ) : IEnumerable

Method Details

ClearCache() public method

public ClearCache ( ) : void
return void

DeleteEvents() public method

public DeleteEvents ( System.Guid aggregateId ) : void
aggregateId System.Guid
return void

Dispose() public method

public Dispose ( ) : void
return void

GetAggregateHistory() public method

public GetAggregateHistory ( System.Guid aggregateId ) : IEnumerable
aggregateId System.Guid
return IEnumerable

GetAggregateHistoryForUpdate() public method

public GetAggregateHistoryForUpdate ( System.Guid aggregateId ) : IEnumerable
aggregateId System.Guid
return IEnumerable

PersistMigrations() public method

public PersistMigrations ( ) : void
return void

ResetDB() public method

public ResetDB ( ) : void
return void

ResetDB() public static method

public static ResetDB ( string connectionString ) : void
connectionString string
return void

SaveEvents() public method

public SaveEvents ( IEnumerable events ) : void
events IEnumerable
return void

SqlServerEventStore() public method

public SqlServerEventStore ( string connectionString, ISingleContextUseGuard usageGuard, IEventNameMapper nameMapper = null, IEnumerable migrations = null ) : System
connectionString string
usageGuard ISingleContextUseGuard
nameMapper IEventNameMapper
migrations IEnumerable
return System

StreamAggregateIdsInCreationOrder() public method

public StreamAggregateIdsInCreationOrder ( Type eventBaseType = null ) : IEnumerable
eventBaseType System.Type
return IEnumerable

StreamEvents() public method

public StreamEvents ( int batchSize, Action handleEvents ) : void
batchSize int
handleEvents Action
return void

Property Details

ConnectionString public property

public string ConnectionString
return string