Files
mixtape/zero.Core/Api/BackofficeStore.cs
T
2020-06-04 15:50:21 +02:00

32 lines
672 B
C#

using Raven.Client.Documents;
using zero.Core.Options;
namespace zero.Core.Api
{
public class BackofficeStore : IBackofficeStore
{
public IDocumentStore Raven { get; private set; }
public IApplicationContext AppContext { get; private set; }
public IZeroOptions Options { get; private set; }
public BackofficeStore(IDocumentStore raven, IApplicationContext appContext, IZeroOptions options)
{
Raven = raven;
AppContext = appContext;
Options = options;
}
}
public interface IBackofficeStore
{
IDocumentStore Raven { get; }
IApplicationContext AppContext { get; }
IZeroOptions Options { get; }
}
}