Files
mixtape/zero.Core/Stores/StoreContext.cs
T

38 lines
769 B
C#
Raw Normal View History

2021-11-23 22:56:22 +01:00
namespace zero.Stores;
2021-11-23 11:35:01 +01:00
2021-11-23 22:56:22 +01:00
public class StoreContext : IStoreContext
2021-11-23 11:35:01 +01:00
{
public IZeroStore Store { get; private set; }
public IZeroContext Context { get; private set; }
public IZeroOptions Options { get; private set; }
public IInterceptors Interceptors { get; private set; }
2021-11-24 13:56:08 +01:00
public IStoreCache Cache { get; private set; }
2021-11-23 11:35:01 +01:00
2021-11-24 13:56:08 +01:00
2021-12-13 15:17:47 +01:00
public StoreContext(IZeroContext context, IInterceptors interceptors, IStoreCache cache)
2021-11-23 11:35:01 +01:00
{
Store = context.Store;
Options = context.Options;
Context = context;
Interceptors = interceptors;
2021-11-24 13:56:08 +01:00
Cache = cache;
2021-11-23 11:35:01 +01:00
}
}
2021-11-23 22:56:22 +01:00
public interface IStoreContext
2021-11-23 11:35:01 +01:00
{
IZeroStore Store { get; }
IZeroContext Context { get; }
IZeroOptions Options { get; }
IInterceptors Interceptors { get; }
2021-11-24 13:56:08 +01:00
IStoreCache Cache { get; }
2021-11-23 11:35:01 +01:00
}