Example #1
0
        public override void onMessage(QuickFix44.BusinessMessageReject message, SessionID session)
        {
            RefSeqNum            refSeqNum            = message.isSetRefSeqNum() ? message.getRefSeqNum() : new RefSeqNum(-1);
            Text                 text                 = message.getText();
            RefMsgType           refMsgType           = message.getRefMsgType();
            BusinessRejectRefID  businessRejectRefID  = message.isSetBusinessRejectRefID() ? message.getBusinessRejectRefID() : new BusinessRejectRefID("not set");
            BusinessRejectReason businessRejectReason = message.getBusinessRejectReason();

            Console.WriteLine("QuickFix44.BusinessMessageReject: {0}, {1}, {2}, {3}, {4}", refSeqNum, text, refMsgType, businessRejectRefID, businessRejectReason);
        }
Example #2
0
        public override void onMessage(QuickFix44.Reject message, SessionID session)
        {
            // getting attributes

            RefMsgType          refMsgType          = message.getRefMsgType();
            RefSeqNum           refSeqNum           = message.getRefSeqNum();
            RefTagID            refTagID            = message.getRefTagID();
            SessionRejectReason sessionRejectReason = message.getSessionRejectReason();
            Text text = message.getText();

            // firing event

            Console.WriteLine("QuickFix44.Reject: {0}, {1}, {2}, {3}, {4}", refMsgType, refSeqNum, refTagID, sessionRejectReason, text);
        }