| 123456789101112131415161718192021222324252627 | 
							- using FreeRedis;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- namespace WCS.Core
 
- {
 
-     public class DebugPublisher
 
-     {
 
-         static RedisClient Redis;
 
-         static DebugPublisher()
 
-         {
 
-             Redis = new RedisClient(Configs.DebugRedisUrl);
 
-         }
 
-         public static void Publish(string channel,string msg)
 
-         {
 
-             try
 
-             {
 
-                 Redis.Publish(channel, msg);
 
-             }
 
-             catch { }
 
-         }
 
-     }
 
- }
 
 
  |