Class MongoDbEventSourcingConfiguration
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.EventSourcing.MongoDB
Assembly: Cephalon.EventSourcing.MongoDB.dll
Applies the Cephalon event-store schema to a MongoDB collection.
public static class MongoDbEventSourcingConfigurationInheritance
Section titled “Inheritance”object ← MongoDbEventSourcingConfiguration
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”EnsureIndexesAsync(IMongoCollection<MongoDbEventEntry>, CancellationToken)
Section titled “ EnsureIndexesAsync(IMongoCollection<MongoDbEventEntry>, CancellationToken)”Creates the compound unique index on (StreamId, StreamVersion) required by the MongoDB event-store provider.
public static Task EnsureIndexesAsync(IMongoCollection<MongoDbEventEntry> collection, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”collection IMongoCollection<MongoDbEventEntry>
The MongoDB collection to configure.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”A task that completes when all indexes have been created.