c# - Quickfix, Is there a "catch-all" method OnMessage to handle incoming messages not handled by overloaded methods? -
i use messagecracker crack(message, sessionid);
within fromadmin , fromapp (i use version 1.4 of quickfix/n , message cracker seems handle admin messages, @ least overloaded onmessage(quickfix.fix44.longon message, sessionid sessionid){}
handled correctly).
my question is: in case have not overloaded onmessage methods incoming messages go through messagecracker there sort of "catch-all-other" message method called incoming messages cannot forwarded overloaded onmessage
method? not want have quickfix send message rejects because, example fix server sends unhandled message which, however, may not essential process flow. want handle myself. not feel comfortable handle in try/catch because not feel cleanest approach.
any advice?
thanks
no, there isn't.
any respectable fix counterparty have spec tells messages types send (as fields these messages might contain).
therefore, should know message types need support, , can provide onmessage
call each of them.
you pre-test message string's type field before calling crack()
. work, think it's misguided.
Comments
Post a Comment