C# Class CQRSalad.EventStore.MongoDB.MongoSnapshotStore

Inheritance: ISnapshotStore
Mostra file Open project: Ontropix/CQRSalad

Public Methods

Method Description
LoadSnapshot ( string aggregateId ) : Task
MongoSnapshotStore ( IMongoDatabase mongoDatabase, MongoSnapshotsOptions options ) : System.Threading.Tasks
SaveSnapshot ( AggregateSnapshot snapshot ) : System.Threading.Tasks.Task

Private Methods

Method Description
GetCollection ( ) : IMongoCollection

Method Details

LoadSnapshot() public method

public LoadSnapshot ( string aggregateId ) : Task
aggregateId string
return Task

MongoSnapshotStore() public method

public MongoSnapshotStore ( IMongoDatabase mongoDatabase, MongoSnapshotsOptions options ) : System.Threading.Tasks
mongoDatabase IMongoDatabase
options MongoSnapshotsOptions
return System.Threading.Tasks

SaveSnapshot() public method

public SaveSnapshot ( AggregateSnapshot snapshot ) : System.Threading.Tasks.Task
snapshot CQRSalad.EventSourcing.AggregateSnapshot
return System.Threading.Tasks.Task