Ejemplo n.º 1
0
        public RedisConnectionLifetimeManager(ILogger <RedisConnectionLifetimeManager> logger,
                                              IOptions <RedisOptions> options)
        {
            _logger     = logger;
            _options    = options.Value;
            _ackHandler = new AckHandler();
            _channels   = new RedisChannels("RedisConnectionLifetimeManager");
            _protocol   = new RedisProtocol();

            RedisLog.ConnectingToEndpoints(_logger, options.Value.Configuration.EndPoints, _serverName);
            _ = EnsureRedisServerConnection();
        }