C# Class CQRSalad.EventStore.MongoDB.HeadBasedMongoEventStore

Inheritance: IEventStore
Exibir arquivo Open project: Ontropix/CQRSalad

Public Methods

Method Description
AppendAsync ( string streamId, DomainEvent @event ) : System.Threading.Tasks.Task
AppendManyAsync ( string streamId, List events ) : System.Threading.Tasks.Task
CountStreamAsync ( string streamId ) : Task
GetStreamAsync ( string streamId ) : Task>
GetStreamPartAsync ( string streamId, int fromVersion, int toVersion = -1 ) : Task>
HeadBasedMongoEventStore ( IMongoDatabase mongoDatabase, EventStoreSettings settings ) : System

Method Details

AppendAsync() public method

public AppendAsync ( string streamId, DomainEvent @event ) : System.Threading.Tasks.Task
streamId string
@event CQRSalad.EventStore.Core.DomainEvent
return System.Threading.Tasks.Task

AppendManyAsync() public method

public AppendManyAsync ( string streamId, List events ) : System.Threading.Tasks.Task
streamId string
events List
return System.Threading.Tasks.Task

CountStreamAsync() public method

public CountStreamAsync ( string streamId ) : Task
streamId string
return Task

GetStreamAsync() public method

public GetStreamAsync ( string streamId ) : Task>
streamId string
return Task>

GetStreamPartAsync() public method

public GetStreamPartAsync ( string streamId, int fromVersion, int toVersion = -1 ) : Task>
streamId string
fromVersion int
toVersion int
return Task>

HeadBasedMongoEventStore() public method

public HeadBasedMongoEventStore ( IMongoDatabase mongoDatabase, EventStoreSettings settings ) : System
mongoDatabase IMongoDatabase
settings EventStoreSettings
return System