public RedisConnectionManager(RedisConnection redisConnection, NotificationEvents nEvents)
 {
     _redisConnection      = redisConnection;
     _configurationOptions = new ConfigurationOptions();
     //_configurationOptions.User  //TOOD: implement user/password/ssl
     //_configurationOptions.TrustIssuer(new X509Certificate2)
     _configurationOptions.EndPoints.Add(_redisConnection.Host, _redisConnection.Port);
     _nEvents = nEvents;
 }
Exemplo n.º 2
0
 public RedisSubscriber(
     ISubscriber subscriber,
     string channel,
     NotificationEvents nEvents)
 {
     _subscriber          = subscriber;
     _channel             = channel;
     _channelMessageQueue = subscriber.Subscribe(channel);
     _nEvents             = nEvents;
 }
 public RedisPublisher(ISubscriber subscriber, string channel, NotificationEvents nEvents)
 {
     _subscriber = subscriber;
     _channel    = channel;
     _nEvents    = nEvents;
 }
Exemplo n.º 4
0
 public RedisManager(RedisConnectionManager redisConnectionManager, NotificationEvents nEvents)
 {
     _redisConnectionManager = redisConnectionManager;
     _nEvents = nEvents;
 }