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 Cqrs.DataStores;
10 :
11 : namespace Cqrs.MongoDB.Factories
12 : {
13 : /// <summary>
14 : /// A factory for getting connection strings and database names for <see cref="IDataStore{TData}"/> access.
15 : /// </summary>
16 : public interface IMongoDbDataStoreConnectionStringFactory
17 : {
18 : /// <summary>
19 : /// Gets the current connection string.
20 : /// </summary>
21 1 : string GetDataStoreConnectionString();
22 :
23 : /// <summary>
24 : /// Gets the current database name.
25 : /// </summary>
26 1 : string GetDataStoreDatabaseName();
27 : }
28 : }
|