/// <summary>
        ///
        /// </summary>
        /// <param name="reject"></param>
        /// <param name="sessionId"></param>
        private void OnMessage(QuickFix.FIX43.Reject reject, SessionID sessionId)
        {
            try
            {
                // SessionRejectReason (373)
                // 0 = Invalid tag number
                // 1 = Required tag missing
                // 2 = Tag not defined for this message type
                // 3 = Undefined Tag
                // 4 = Tag specified without a value
                // 5 = Value is incorrect (out of range) for this tag
                // 6 = Incorrect data format for value
                // 7 = Decryption problem
                // 8 = Signature problem
                // 9 = CompID problem
                // 10 = SendingTime (52) accuracy problem
                // 11 = Invalid MsgType (35)
                // (Note other session-level rule violations may exist in which case SessionRejectReason (373) is not specified)

                if (Logger.IsInfoEnabled)
                {
                    Logger.Info(
                        "Message rejected at business level : " +
                        reject.GetField(58).ToString(CultureInfo.InvariantCulture),
                        _type.FullName, "OnMessage");
                }
            }
            catch (Exception exception)
            {
                Logger.Error(exception.ToString(), _type.FullName, "OnMessage");
            }
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="reject"></param>
 /// <param name="sessionId"></param>
 private void OnMessage(QuickFix.FIX43.Reject reject, SessionID sessionId)
 {
     try
     {
         if (Logger.IsInfoEnabled)
         {
             Logger.Info(
                 "Message rejected at business level : " +
                 reject.GetField(58).ToString(CultureInfo.InvariantCulture), _type.FullName, "OnMessage");
         }
     }
     catch (Exception exception)
     {
         Logger.Error(exception.ToString(), _type.FullName, "OnMessage");
     }
 }