/// <summary> /// Message Log /// </summary> /// <param name="strMSG"></param> /// <param name="bSend"></param> /// <returns></returns> private string GetMessageLog(string strMSG, bool bSend) { StringBuilder sb = new StringBuilder(); string sHostMsgName = string.Empty; Dictionary <string, string> hostMSGList = null; try { // ?? msgParser 가 필요한가? CTibRVMessageBase mMessage = new CTibRVMessageBase(); hostMSGList = mMessage.msgParser(strMSG); sHostMsgName = hostMSGList["MSG_NAME"]; sb.Append(string.Format(" {0} {1} \r\n", bSend ? "SEND" : "RECV", sHostMsgName)); foreach (string strKey in hostMSGList.Keys) { if (sHostMsgName != hostMSGList[strKey]) { sb.Append(string.Format(" {0}={1}\r\n", strKey, hostMSGList[strKey])); } } } catch (Exception ex) { //CHECK NEED SystemLogger.Log(ex); } return(sb.ToString()); }
private Dictionary <string, string> GetParseMessage(string strMSG) { Dictionary <string, string> hostMSGList = null; try { CTibRVMessageBase mMessage = new CTibRVMessageBase(); hostMSGList = mMessage.msgParser(strMSG); } catch (Exception ex) { //CHECK NEED SystemLogger.Log(ex); //CHECK NEED SystemLogger.Log(strMSG); } return(hostMSGList); }