[Quickfix-users] DoNotSend in c# ?
Brought to you by:
orenmnero
From: :: <rod...@gm...> - 2009-09-17 16:28:36
|
Hi, i am not a really experienced programmer and i am having some issues trying to throw a DoNotSend exception in c#. I've got the bit of code below and was expecting that QuickFix would handle the "DoNotSend", but apparently it doen't. I've seen somewhere in the documentation that the toApp callback in C++ has a throw declaration right after callback's (). I could not find anything similar in c#. I suppose i didn't get the idea here... Any help is appreciated. Thanks, rodrigo [code] public void toApp(QuickFix.Message message, SessionID sessionID) { MsgType msgType = new MsgType(); message.getHeader().getField(msgType); if (msgType.getValue() == "x") { throw new DoNotSend(); } } |