public int GetMessageSize() // подсчет длины строки сообщения { string tmpString = String.Format("98={0}\u0001108={1}\u0001141={2}\u0001", // 554=\u0001 EncryptMethod.ToString(), HeartBtInt.ToString(), ResetSeqNumFlag == true ? "Y" : "N"); return(tmpString.Length); }
public override string ToString() // формирование строки сообщения { MessageString = String.Format("{0}={1}\u0001{2}={3}\u0001{4}={5}\u0001", // 554=\u0001 (int)Tags.EncryptMethod, EncryptMethod.ToString(), (int)Tags.HearBitInt, HeartBtInt.ToString(), (int)Tags.ResetSeqNumFlag, ResetSeqNumFlag == true ? "Y" : "N" ); MessageSize = MessageString.Length; return(MessageString); }
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); }
public override int GetHashCode() { int hash = 1; if (MsgType.Length != 0) { hash ^= MsgType.GetHashCode(); } if (HeartBtInt != 0) { hash ^= HeartBtInt.GetHashCode(); } if (RejectText.Length != 0) { hash ^= RejectText.GetHashCode(); } hash ^= account_.GetHashCode(); if (SendingTime != 0L) { hash ^= SendingTime.GetHashCode(); } if (CstmApplVerId.Length != 0) { hash ^= CstmApplVerId.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Password.Length != 0) { hash ^= Password.GetHashCode(); } if (RawData.Length != 0) { hash ^= RawData.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }