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.Snapshots;
10 : using Microsoft.Azure.Documents.Client;
11 :
12 : namespace Cqrs.Azure.DocumentDb.Events
13 : {
14 : /// <summary>
15 : /// A factory for getting connections and database names for <see cref="ISnapshotStore"/> access.
16 : /// </summary>
17 : public interface IAzureDocumentDbSnapshotStoreConnectionStringFactory
18 : {
19 : /// <summary>
20 : /// Gets the current <see cref="DocumentClient"/>.
21 : /// </summary>
22 1 : DocumentClient GetSnapshotStoreConnectionClient();
23 :
24 : /// <summary>
25 : /// Gets the current database name.
26 : /// </summary>
27 1 : string GetSnapshotStoreConnectionDatabaseName();
28 :
29 : /// <summary>
30 : /// Gets the current collection name.
31 : /// </summary>
32 1 : string GetSnapshotStoreConnectionCollectionName();
33 : }
34 : }
|