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; }
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>(); }
public DefaultConfigurationPublish(IRedisOperationHelp _redis) { redis = _redis; }
public RedisInternalConfigurationRepository(IRedisOperationHelp _redis, IServiceProvider _serviceProvider) { redis = _redis; serviceProvider = _serviceProvider; }
public RedisStoreEventBus(IRedisOperationHelp _redis) { redis = _redis; }
public RedisSubscribeReloadData(IRedisOperationHelp _redis, IConfiguration _configuration, IFateConfigurationLoadAbstract _fateConfigurationLoad) { redis = _redis; configuration = _configuration; fateConfigurationLoad = _fateConfigurationLoad; }
/// <summary> /// 构造注入 /// </summary> /// <param name="_redis"></param> public OcelotRedisManagerCache(IRedisOperationHelp _redis) { redis = _redis; }