HeartBtInt Field
Inheritance: IntField
Exemple #1
0
 public Logon(
     QuickFix.Fields.EncryptMethod aEncryptMethod,
     QuickFix.Fields.HeartBtInt aHeartBtInt
     ) : this()
 {
     this.EncryptMethod = aEncryptMethod;
     this.HeartBtInt    = aHeartBtInt;
 }
Exemple #2
0
        /// <summary>
        /// Add username and password before sending the message
        /// </summary>
        /// <param name="message"></param>
        /// <param name="sessionId"></param>
        private void OnMessage(QuickFix.FIX42.Logon message, SessionID sessionId)
        {
            try
            {
                QuickFix.Fields.EncryptMethod   encryptMethod   = new QuickFix.Fields.EncryptMethod(0);
                QuickFix.Fields.HeartBtInt      heartBtInt      = new QuickFix.Fields.HeartBtInt(30);
                QuickFix.Fields.ResetSeqNumFlag resetSeqNumFlag = new QuickFix.Fields.ResetSeqNumFlag(true);

                message.SetField(encryptMethod);
                message.SetField(heartBtInt);
            }
            catch (Exception exception)
            {
                Logger.Error(exception.ToString(), _type.FullName, "OnMessage");
            }
        }
        /// <summary>
        /// Add username and password before sending the message
        /// </summary>
        /// <param name="message"></param>
        /// <param name="sessionId"></param>
        private void OnMessage(QuickFix.FIX44.Logon message, SessionID sessionId)
        {
            try
            {
                // Username & Password
                QuickFix.Fields.ResetSeqNumFlag resetSeqNumFlag = new QuickFix.Fields.ResetSeqNumFlag(true);
                QuickFix.Fields.EncryptMethod   encryptMethod   = new QuickFix.Fields.EncryptMethod(0);
                QuickFix.Fields.HeartBtInt      heartBtInt      = new QuickFix.Fields.HeartBtInt(GetHeartBeatInterval());

                // Set values in the message body before sending
                message.ResetSeqNumFlag = resetSeqNumFlag;
                message.EncryptMethod   = encryptMethod;
                message.HeartBtInt      = heartBtInt;
            }
            catch (Exception exception)
            {
                Logger.Error(exception.ToString(), _type.FullName, "OnMessage");
            }
        }
Exemple #4
0
 public void Set(QuickFix.Fields.HeartBtInt val) 
 { 
     this.HeartBtInt = val;
 }
Exemple #5
0
 public bool IsSet(QuickFix.Fields.HeartBtInt val)
 {
     return(IsSetHeartBtInt());
 }
Exemple #6
0
 public QuickFix.Fields.HeartBtInt Get(QuickFix.Fields.HeartBtInt val)
 {
     GetField(val);
     return(val);
 }
Exemple #7
0
 public void Set(QuickFix.Fields.HeartBtInt val)
 {
     this.HeartBtInt = val;
 }