/// <summary> /// /// </summary> /// <param name="message"></param> /// <returns></returns> public static bool SendDataToLogonServer(RedisMessage message) { if (message == null) { return(true); } message.ServerUUID = ServerUuid; redisClient.PublisMessage(_PublisLS, message.Serialize()); return(true); }
/// <summary> /// /// </summary> /// <param name="serverUuid"></param> /// <param name="message"></param> /// <returns></returns> public static bool SendDataToServer(Guid serverUuid, RedisMessage message) { if (message == null) { return(true); } message.ServerUUID = ServerUuid; if (serverUuid == ServerUuid) { if (message.IsFromRedis) { return(false); } OnRedisMessageComing(message); return(true); } redisClient.PublisMessage(serverUuid.ToString("n"), message.Serialize()); return(true); }