|
@@ -1,27 +1,23 @@
|
|
|
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;
|
|
|
+ private static RedisClient Redis;
|
|
|
+
|
|
|
static DebugPublisher()
|
|
|
{
|
|
|
Redis = new RedisClient(Configs.DebugRedisUrl);
|
|
|
}
|
|
|
|
|
|
- public static void Publish(string channel,string msg)
|
|
|
+ public static void Publish(string channel, string msg)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- Redis.Publish(channel, msg);
|
|
|
+ Redis.Publish(channel.Replace(".", "-"), msg);
|
|
|
}
|
|
|
catch { }
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
+}
|