示例#1
0
 public RedisQueryTransformerProvider(IHttpContextAccessor accessor, IDistributedCache cache,
                                      RedlockFactoryProvider lockFactoryProvider, IQueryBuilderProvider queryBuilderProvider)
     : base(accessor, lockFactoryProvider)
 {
     _cache = cache;
     _queryBuilderProvider = queryBuilderProvider;
 }
 public RedisQueryBuilderProvider(IQueryBuilderConfigurator configurator,
                                  IDistributedCache cache, IHttpContextAccessor accessor,
                                  RedlockFactoryProvider lockFactoryProvider)
     : base(accessor, lockFactoryProvider)
 {
     _configurator = configurator;
     _cache        = cache;
 }
 protected RedisProviderBase(IHttpContextAccessor accessor,
                             RedlockFactoryProvider lockFactoryProvider)
 {
     _accessor    = accessor;
     _lockFactory = lockFactoryProvider.Factory;
 }