Пример #1
0
 public void PSubscribe_Sentinel_Test()
 {
     using (RedisPubSub rsc = new RedisPubSub(ip, port))
     {
         rsc.OnMessage += OnMessage;
         rsc.PSubscribe("*");
     }
 }
Пример #2
0
 public void Subscribe_Error_Test()
 {
     using (RedisPubSub rsc = new RedisPubSub(ip, 10000))
     {
         rsc.OnMessage += OnMessage;
         rsc.PSubscribe("*");
     }
     Thread.Sleep(5000);
 }