public Logon( QuickFix.Fields.EncryptMethod aEncryptMethod, QuickFix.Fields.HeartBtInt aHeartBtInt ) : this() { this.EncryptMethod = aEncryptMethod; this.HeartBtInt = aHeartBtInt; }
/// <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"); } }
public void Set(QuickFix.Fields.HeartBtInt val) { this.HeartBtInt = val; }
public bool IsSet(QuickFix.Fields.HeartBtInt val) { return(IsSetHeartBtInt()); }
public QuickFix.Fields.HeartBtInt Get(QuickFix.Fields.HeartBtInt val) { GetField(val); return(val); }