Exemplo n.º 1
0
 public RedisStreamManager(IRedisConnectionPool connectionsPool, IOptions <CapRedisOptions> options,
                           ILogger <RedisStreamManager> logger)
 {
     _options         = options.Value;
     _connectionsPool = connectionsPool;
     _logger          = logger;
 }
 public RedisController(IRedisConnectionPool redisConnectionPool, IRedisProfiler redisProfiler)
 {
     _redisConnectionPool = redisConnectionPool ?? throw new ArgumentNullException(nameof(redisConnectionPool));
     _redisProfiler       = redisProfiler ?? throw new ArgumentNullException(nameof(redisProfiler));
 }