Files
mixtape/zero.Core/Api/BackofficeStore.cs
T

37 lines
838 B
C#
Raw Normal View History

using Raven.Client.Documents;
2020-06-04 15:50:21 +02:00
using zero.Core.Options;
namespace zero.Core.Api
{
public class BackofficeStore : IBackofficeStore
{
public IDocumentStore Raven { get; private set; }
public IApplicationContext AppContext { get; private set; }
2020-06-04 15:50:21 +02:00
public IZeroOptions Options { get; private set; }
public IAuthenticationApi Auth { get; private set; }
2020-06-04 15:50:21 +02:00
public BackofficeStore(IDocumentStore raven, IApplicationContext appContext, IZeroOptions options, IAuthenticationApi authenticationApi)
{
Raven = raven;
AppContext = appContext;
2020-06-04 15:50:21 +02:00
Options = options;
Auth = authenticationApi;
}
}
public interface IBackofficeStore
{
IDocumentStore Raven { get; }
IApplicationContext AppContext { get; }
2020-06-04 15:50:21 +02:00
IZeroOptions Options { get; }
IAuthenticationApi Auth { get; }
}
}