Class TableStorageDataStoreConnectionStringFactory<TData>
A factory for getting connection strings and container names for IDataStore<TData> access. This factory supports reading and writing from separate storage accounts. Specifically you can have as many different storage accounts as you want to configure when writing. This allows for manual mirroring of data while reading from the fastest/closest location possible.
Inheritance
System.Object
TableStorageDataStoreConnectionStringFactory<TData>
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.Azure.Storage.DataStores
Assembly: Cqrs.Azure.Storage.dll
Syntax
public class TableStorageDataStoreConnectionStringFactory<TData> : TableStorageDataStoreConnectionStringFactory, ITableStorageDataStoreConnectionStringFactory, ITableStorageStoreConnectionStringFactory, IStorageStoreConnectionStringFactory
Type Parameters
Name | Description |
---|---|
TData |
Constructors
TableStorageDataStoreConnectionStringFactory(IConfigurationManager, ILogger)
Instantiates a new instance of TableStorageDataStoreConnectionStringFactory<TData>.
Declaration
public TableStorageDataStoreConnectionStringFactory(IConfigurationManager configurationManager, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationManager | configurationManager | |
cdmdotnet.Logging.ILogger | logger |
Methods
GetContainerName()
Returns GetTableName<TData1>().
Declaration
public override string GetContainerName()
Returns
Type | Description |
---|---|
System.String | GetTableName<TData1>() |
Overrides
GetTableName<TData1>()
Generates the name of the table for TData1
that matches naming rules for Azure Storage.
The value differs from GetTableName<TData>() in that it appends "V2" to the end of the table name.
Declaration
public override string GetTableName<TData1>()
Returns
Type | Description |
---|---|
System.String |
Type Parameters
Name | Description |
---|---|
TData1 | The System.Type of data to read or write. |