Пример #1
0
 public override void onMessage(QuickFix44.Logon message, SessionID sessionID)
 {
     Logger.InfoFormat("Logon command (Sender = {0}, Target = {1}, Encrypt = {2}," +
                       " Password = {3}, Heartbeat int = {4})",
                       sessionID.getSenderCompID(), sessionID.getTargetCompID(),
                       message.getEncryptMethod(), message.getPassword(), message.getHeartBtInt());
 }
Пример #2
0
        public override void onMessage(QuickFix44.Logon message, SessionID session)
        {
            // getting attributes

            HeartBtInt heartBtInt = message.getHeartBtInt();

            ResetSeqNumFlag resetSeqNumFlag = message.getResetSeqNumFlag();

            // no me lo mandan
            //Username username = message.getUsername();

            // no me lo mandan
            //Password password = message.getPassword();

            // firing event

            Console.WriteLine("QuickFix44.Logon: {0}, {1}", heartBtInt, resetSeqNumFlag);
        }