using FreeRedis; namespace WCS.Core { public class DebugPublisher { private static RedisClient Redis; static DebugPublisher() { Redis = new RedisClient(Configs.DebugRedisUrl); } public static void Publish(string channel, string msg) { try { Redis.Publish(channel, msg); } catch { // TODO:日常日志 } } } }