C# Class PatientPending.Core.InMemoryEventStore

Inheritance: IEventStore
ファイルを表示 Open project: PaulUpson/PatientPending

Public Methods

Method Description
GetAllEvents ( ) : List
GetEventsForAggregate ( System.Guid aggregateId ) : List
InMemoryEventStore ( IEventPublisher publisher ) : System
PeekChanges ( ) : IList
SaveEvents ( System.Guid aggregateId, IEnumerable events, int expectedVersion ) : void

Method Details

GetAllEvents() public method

public GetAllEvents ( ) : List
return List

GetEventsForAggregate() public method

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

InMemoryEventStore() public method

public InMemoryEventStore ( IEventPublisher publisher ) : System
publisher IEventPublisher
return System

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