示例#1
0
 public Home1Controller(SettingApp _setting, IUnitOfWork <MysqlDbContent> _unitOfWork, IRedisOperationHelp _redis, MyJsonResult myJson, RSAHelper _rSA, IServiceProvider _serviceProvider)
 {
     setting         = _setting;
     unitOfWork      = _unitOfWork;
     redis           = _redis;
     jsonResult      = myJson;
     rSA             = _rSA;
     serviceProvider = _serviceProvider;
 }
示例#2
0
 public RedisTest()
 {
     //注入redis仓储服务
     services.AddRedisRepository(options =>
     {
         options.Connection  = new string[] { "127.0.0.1:6379" };
         options.RedisPrefix = new Redis.RedisConfig.RedisPrefixKey();
     });
     redis = services.BuildServiceProvider().GetService <IRedisOperationHelp>();
 }
示例#3
0
 public DefaultConfigurationPublish(IRedisOperationHelp _redis)
 {
     redis = _redis;
 }
示例#4
0
 public RedisInternalConfigurationRepository(IRedisOperationHelp _redis, IServiceProvider _serviceProvider)
 {
     redis           = _redis;
     serviceProvider = _serviceProvider;
 }
示例#5
0
 public RedisStoreEventBus(IRedisOperationHelp _redis)
 {
     redis = _redis;
 }
示例#6
0
 public RedisSubscribeReloadData(IRedisOperationHelp _redis, IConfiguration _configuration, IFateConfigurationLoadAbstract _fateConfigurationLoad)
 {
     redis                 = _redis;
     configuration         = _configuration;
     fateConfigurationLoad = _fateConfigurationLoad;
 }
示例#7
0
 /// <summary>
 /// 构造注入
 /// </summary>
 /// <param name="_redis"></param>
 public OcelotRedisManagerCache(IRedisOperationHelp _redis)
 {
     redis = _redis;
 }