Class AzureDocumentDbEventStoreConnectionStringFactory
A factory for getting connections and database names for IEventStore<TAuthenticationToken> access.
Inheritance
System.Object
AzureDocumentDbEventStoreConnectionStringFactory
Namespace: Cqrs.Azure.DocumentDb.Events
Assembly: Cqrs.Azure.DocumentDb.dll
Syntax
public class AzureDocumentDbEventStoreConnectionStringFactory : object, IAzureDocumentDbEventStoreConnectionStringFactory
Constructors
AzureDocumentDbEventStoreConnectionStringFactory(ILogger, IConfigurationManager)
Instantiates a new instance of AzureDocumentDbEventStoreConnectionStringFactory.
Declaration
public AzureDocumentDbEventStoreConnectionStringFactory(ILogger logger, IConfigurationManager configurationManager)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | |
IConfigurationManager | configurationManager |
Properties
ConfigurationManager
Gets or sets the IConfigurationManager.
Declaration
protected IConfigurationManager ConfigurationManager { get; }
Property Value
Type | Description |
---|---|
IConfigurationManager |
Logger
Gets or sets the
Declaration
protected ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Methods
GetEventStoreConnectionAuthorisationKey()
Gets the current connection authorisation key from the ConfigurationManager.
Declaration
protected virtual string GetEventStoreConnectionAuthorisationKey()
Returns
Type | Description |
---|---|
System.String |
GetEventStoreConnectionClient()
Gets the current
Declaration
public virtual DocumentClient GetEventStoreConnectionClient()
Returns
Type | Description |
---|---|
DocumentClient |
Implements
GetEventStoreConnectionCollectionName()
Gets the current collection name.
Declaration
public string GetEventStoreConnectionCollectionName()
Returns
Type | Description |
---|---|
System.String |
Implements
GetEventStoreConnectionDatabaseName()
Gets the current database name.
Declaration
public virtual string GetEventStoreConnectionDatabaseName()
Returns
Type | Description |
---|---|
System.String |
Implements
GetEventStoreConnectionUrl()
Gets the current connection
Declaration
protected virtual Uri GetEventStoreConnectionUrl()
Returns
Type | Description |
---|---|
Uri |