32 lines
672 B
C#
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; }
|
|
}
|
|
} |