Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="Chinchilla Software Limited">
4 : // // Copyright Chinchilla Software Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 : using Cqrs.DataStores;
11 :
12 : namespace Cqrs.Azure.BlobStorage.DataStores
13 : {
14 : /// <summary>
15 : /// A factory for getting connection strings and container names for <see cref="IDataStore{TData}"/> access.
16 : /// 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.
17 : /// This allows for manual mirroring of data while reading from the fastest/closest location possible.
18 : /// </summary>
19 : public interface ITableStorageDataStoreConnectionStringFactory : ITableStorageStoreConnectionStringFactory
20 : {
21 : /// <summary>
22 : /// Generates the name of the table for <typeparamref name="TData"/> that matches naming rules for Azure Storage.
23 : /// </summary>
24 : /// <typeparam name="TData">The <see cref="Type"/> of data to read or write.</typeparam>
25 : /// <remarks>https://blogs.msdn.microsoft.com/jmstall/2014/06/12/azure-storage-naming-rules/</remarks>
26 1 : string GetTableName<TData>();
27 : }
28 : }
|