Class MongoDbEventStoreConnectionStringFactory
A factory for getting connection strings and database names for IEventStore<TAuthenticationToken> access.
Inheritance
System.Object
MongoDbEventStoreConnectionStringFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.MongoDB.Events
Assembly: Cqrs.MongoDB.dll
Syntax
public class MongoDbEventStoreConnectionStringFactory : IMongoDbEventStoreConnectionStringFactory
Constructors
MongoDbEventStoreConnectionStringFactory(IConfigurationManager, ILogger)
Instantiates a new instance of MongoDbEventStoreConnectionStringFactory.
Declaration
public MongoDbEventStoreConnectionStringFactory(IConfigurationManager configurationManager, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationManager | configurationManager | |
cdmdotnet.Logging.ILogger | logger |
Fields
MongoDbConnectionNameApplicationKey
The name of the app setting in IConfigurationManager that will have the name of the connection string of the MongoDB server.
Declaration
public static string MongoDbConnectionNameApplicationKey
Field Value
Type | Description |
---|---|
System.String |
MongoDbConnectionStringKey
Backwards compatibility with version 1.
Declaration
public static string MongoDbConnectionStringKey
Field Value
Type | Description |
---|---|
System.String |
MongoDbDatabaseNameApplicationKey
The name of the app setting in IConfigurationManager that will have the name of the database.
Declaration
public static string MongoDbDatabaseNameApplicationKey
Field Value
Type | Description |
---|---|
System.String |
MongoDbDatabaseNameKey
Backwards compatibility with version 1.
Declaration
public static string MongoDbDatabaseNameKey
Field Value
Type | Description |
---|---|
System.String |
Properties
ConfigurationManager
Gets or sets the IConfigurationManager.
Declaration
protected IConfigurationManager ConfigurationManager { get; }
Property Value
Type | Description |
---|---|
IConfigurationManager |
Logger
Gets or sets the cdmdotnet.Logging.ILogger.
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
cdmdotnet.Logging.ILogger |
Methods
GetEventStoreConnectionString()
Gets the current connection string.
Declaration
public string GetEventStoreConnectionString()
Returns
Type | Description |
---|---|
System.String |
Implements
GetEventStoreDatabaseName()
Gets the current database name.
Declaration
public string GetEventStoreDatabaseName()
Returns
Type | Description |
---|---|
System.String |