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

43 lines
927 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-23 22:56:22 +01:00
public IStoreOperations Operations { get; private set; }
2021-11-23 11:35:01 +01:00
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
public StoreContext(IZeroContext context, IInterceptors interceptors, IStoreOperations operations, IStoreCache cache)
2021-11-23 11:35:01 +01:00
{
Store = context.Store;
Options = context.Options;
Context = context;
Interceptors = interceptors;
Operations = operations;
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-23 22:56:22 +01:00
IStoreOperations Operations { get; }
2021-11-24 13:56:08 +01:00
IStoreCache Cache { get; }
2021-11-23 11:35:01 +01:00
}