示例#1
0
文件: Main.cs 项目: bjornudd/redisU
 static void HandleConsumerOnUnsubscribe(object sender, SubscriptionEventArgs args)
 {
     Console.WriteLine("Unsubscribed from channel :" + args.GetChannel());
     //redis.Publish("gameplay", "WTF");
 }
示例#2
0
文件: Main.cs 项目: bjornudd/redisU
 static void HandleConsumerOnSubscribe(object sender, SubscriptionEventArgs args)
 {
     Console.WriteLine("Subscribed to channel : " + args.GetChannel());
     redis.Publish("gameplay", "I m Awesome!!");
     redis.Publish("gameplay", "I m Super Awesome!!");
     //consumer.Unsubscribe(new string[] {"gameplay"});
 }