C# Class PatientPending.Core.SqlEventStore

Inheritance: SqlActuator, IEventStore
Exibir arquivo Open project: PaulUpson/PatientPending

Public Methods

Method Description
GetAllEvents ( ) : List
GetEventsForAggregate ( System.Guid aggregateId ) : List
PeekChanges ( ) : IList
SaveEvents ( System.Guid aggregateId, IEnumerable events, int expectedVersion ) : void
SqlEventStore ( IEventPublisher publisher, string connectionStringName = "" ) : System

Private Methods

Method Description
DeserializeObject ( string data, string type ) : object

Method Details

GetAllEvents() public method

public GetAllEvents ( ) : List
return List

GetEventsForAggregate() public method

public GetEventsForAggregate ( System.Guid aggregateId ) : List
aggregateId System.Guid
return List

PeekChanges() public method

public PeekChanges ( ) : IList
return IList

SaveEvents() public method

public SaveEvents ( System.Guid aggregateId, IEnumerable events, int expectedVersion ) : void
aggregateId System.Guid
events IEnumerable
expectedVersion int
return void

SqlEventStore() public method

public SqlEventStore ( IEventPublisher publisher, string connectionStringName = "" ) : System
publisher IEventPublisher
connectionStringName string
return System