QuickFix.Message.GetMsgType C# (CSharp) Method

GetMsgType() public static method

FIXME totally bogus
public static GetMsgType ( string msg ) : string
msg string
return string
        public static string GetMsgType(string msg)
        {
            Message FIXME = new Message(msg);
            return FIXME.GetField(Tags.MsgType);
        }

Usage Example

コード例 #1
0
 protected void HandleBadMessage(string msg, System.Exception e)
 {
     try
     {
         if (Fields.MsgType.LOGON.Equals(Message.GetMsgType(msg)))
         {
             this.Log("ERROR: Invalid LOGON message, disconnecting: " + e.Message);
             DisconnectClient();
         }
         else
         {
             this.Log("ERROR: Invalid message: " + e.Message);
         }
     }
     catch (InvalidMessage)
     { }
 }
All Usage Examples Of QuickFix.Message::GetMsgType