QuickFix.Message.IsAdminMsgType C# (CSharp) Method

IsAdminMsgType() public static method

public static IsAdminMsgType ( string msgType ) : bool
msgType string
return bool
        public static bool IsAdminMsgType(string msgType)
        {
            return msgType.Length == 1 && "0A12345h".IndexOf(msgType) != -1;
        }

Usage Example

コード例 #1
0
        public Message Create(string beginString, string msgType)
        {
            IMessageFactory f = null;

            // FIXME: This is a hack.  FIXT11 could mean 50 or 50sp1 or 50sp2.
            // We need some way to choose which 50 version it is.
            // Choosing 50 here is not adequate.
            if (beginString.Equals(FixValues.BeginString.FIXT11))
            {
                if (!Message.IsAdminMsgType(msgType))
                {
                    f = _factories[FixValues.BeginString.FIX50];
                }
            }
            if (f != null) // really, this should just be in the previous if-block
            {
                return(f.Create(beginString, msgType));
            }



            if (_factories.ContainsKey(beginString) == false)
            {
                Message m = new Message();
                m.Header.SetField(new StringField(QuickFix.Fields.Tags.MsgType, msgType));
                return(m);
            }

            f = _factories[beginString];
            return(f.Create(beginString, msgType));
        }
All Usage Examples Of QuickFix.Message::IsAdminMsgType