C# Class NDomain.EventSourcing.EventStore

Inheritance: IEventStore
ファイルを表示 Open project: mfelicio/NDomain Class Usage Examples

Public Methods

Method Description
Append ( string aggregateId, int expectedVersion, IEnumerable events ) : System.Threading.Tasks.Task
EventStore ( IEventStoreDb db, IEventStoreBus bus, IEventStoreSerializer serializer ) : Newtonsoft.Json.Linq
Load ( string aggregateId ) : Task>
LoadRange ( string aggregateId, int start, int end ) : Task>

Private Methods

Method Description
CheckAndProcessUncommittedEvents ( string aggregateId, string transactionId ) : System.Threading.Tasks.Task

Method Details

Append() public method

public Append ( string aggregateId, int expectedVersion, IEnumerable events ) : System.Threading.Tasks.Task
aggregateId string
expectedVersion int
events IEnumerable
return System.Threading.Tasks.Task

EventStore() public method

public EventStore ( IEventStoreDb db, IEventStoreBus bus, IEventStoreSerializer serializer ) : Newtonsoft.Json.Linq
db IEventStoreDb
bus IEventStoreBus
serializer IEventStoreSerializer
return Newtonsoft.Json.Linq

Load() public method

public Load ( string aggregateId ) : Task>
aggregateId string
return Task>

LoadRange() public method

public LoadRange ( string aggregateId, int start, int end ) : Task>
aggregateId string
start int
end int
return Task>