Class MongoDbEventSourcingServiceCollectionExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.EventSourcing.MongoDB.Hosting
Assembly: Cephalon.EventSourcing.MongoDB.dll
Registers the MongoDB event-store provider used by Cephalon hosts.
public static class MongoDbEventSourcingServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← MongoDbEventSourcingServiceCollectionExtensions
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”AddCephalonMongoDbEventSourcing(IServiceCollection, string, string, string)
Section titled “ AddCephalonMongoDbEventSourcing(IServiceCollection, string, string, string)”Adds the MongoDB event-store provider to the service collection.
public static IServiceCollection AddCephalonMongoDbEventSourcing(this IServiceCollection services, string connectionString, string databaseName, string collectionName = "event_streams")Parameters
Section titled “Parameters”services IServiceCollection
The service collection to extend.
connectionString string
The MongoDB connection string.
databaseName string
The target MongoDB database name.
collectionName string
The MongoDB collection name used for event stream documents. Defaults to event_streams.
Returns
Section titled “Returns”The same service collection for fluent registration.