/// <summary> /// </summary> /// <param name="msg"> /// </param> public void SendAOtomationMessageBodyToClient(IMSendAOtomationMessageBodyToClient msg) { if (msg.client != null) { msg.client.SendCompressed(msg.Body); } }
/// <summary> /// </summary> /// <param name="msg"> /// </param> public void SendAOtomationMessageBodyToClient(IMSendAOtomationMessageBodyToClient msg) { if (msg.client != null) { try { LogUtil.Debug(DebugInfoDetail.AoTomation, msg.Body.GetType().ToString()); msg.client.SendCompressed(msg.Body); } catch (Exception e) { LogUtil.Debug( DebugInfoDetail.Error, msg.Body.GetType().ToString() + Environment.NewLine + e.Message); // /!\ This happens sometimes, dont know why tho, need more investigation // throw; } } }