/// <summary> /// Reject /// </summary> /// <param name="message"></param> /// <param name="sessionID"></param> private void OnMessage(QuickFix.FIX42.Reject message, SessionID sessionID) { if (Logger.IsInfoEnabled) { Logger.Info("Message Rejected, Sequence Number=" + message.RefSeqNum.getValue(), _type.FullName, "OnMessage"); } }
/// <summary> /// On Session Level Reject message /// </summary> /// <param name="reject"></param> /// <param name="sessionId"></param> private void OnMessage(QuickFix.FIX42.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, _type.FullName, "OnMessage"); } }