C# Class PPPDDDChap23.EventSourcing.Application.Infrastructure.EventStore

Exibir arquivo Open project: elbandit/PPPDDD Class Usage Examples

Public Methods

Method Description
AppendEventsToStream ( string streamName, IEnumerable domainEvents ) : void
CreateNewStream ( string streamName, IEnumerable domainEvents ) : void
EventStore ( IDocumentSession documentSession ) : System
GetStream ( string streamName, int fromVersion, int toVersion ) : IEnumerable

Method Details

AppendEventsToStream() public method

public AppendEventsToStream ( string streamName, IEnumerable domainEvents ) : void
streamName string
domainEvents IEnumerable
return void

CreateNewStream() public method

public CreateNewStream ( string streamName, IEnumerable domainEvents ) : void
streamName string
domainEvents IEnumerable
return void

EventStore() public method

public EventStore ( IDocumentSession documentSession ) : System
documentSession IDocumentSession
return System

GetStream() public method

public GetStream ( string streamName, int fromVersion, int toVersion ) : IEnumerable
streamName string
fromVersion int
toVersion int
return IEnumerable