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 { } } } }