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 cdmdotnet.Logging;
10 : using Cqrs.Azure.BlobStorage.DataStores;
11 : using Cqrs.DataStores;
12 :
13 : namespace Cqrs.Azure.BlobStorage.Factories
14 : {
15 : /// <summary>
16 : /// A factory for obtaining <see cref="IDataStore{TData}"/> collections from Azure Blob Storage.
17 : /// </summary>
18 : public abstract class BlobStorageDataStoreFactory
19 1 : {
20 : /// <summary>
21 : /// Gets the <see cref="IBlobStorageDataStoreConnectionStringFactory"/>.
22 : /// </summary>
23 : protected IBlobStorageDataStoreConnectionStringFactory BlobStorageDataStoreConnectionStringFactory { get; private set; }
24 :
25 : /// <summary>
26 : /// Gets the <see cref="ILogger"/>.
27 : /// </summary>
28 : protected ILogger Logger { get; private set; }
29 :
30 : /// <summary>
31 : /// Instantiates and Initialises a new instance of the <see cref="BlobStorageDataStoreFactory"/> class.
32 : /// </summary>
33 1 : protected BlobStorageDataStoreFactory(ILogger logger, IBlobStorageDataStoreConnectionStringFactory blobStorageDataStoreConnectionStringFactory)
34 : {
35 : Logger = logger;
36 : BlobStorageDataStoreConnectionStringFactory = blobStorageDataStoreConnectionStringFactory;
37 : }
38 : }
39 : }
|