public ResendRequest( QuickFix.Fields.BeginSeqNo aBeginSeqNo, QuickFix.Fields.EndSeqNo aEndSeqNo ) : this() { this.BeginSeqNo = aBeginSeqNo; this.EndSeqNo = aEndSeqNo; }
public void Set(QuickFix.Fields.EndSeqNo val) { this.EndSeqNo = val; }
public bool IsSet(QuickFix.Fields.EndSeqNo val) { return(IsSetEndSeqNo()); }
public QuickFix.Fields.EndSeqNo Get(QuickFix.Fields.EndSeqNo val) { GetField(val); return(val); }
protected bool GenerateResendRequest(string beginString, int msgSeqNum) { Message resendRequest = msgFactory_.Create(beginString, MsgType.RESEND_REQUEST); Fields.BeginSeqNo beginSeqNo = new Fields.BeginSeqNo(state_.GetNextTargetMsgSeqNum()); Fields.EndSeqNo endSeqNo; if (beginString.CompareTo(FixValues.BeginString.FIX42) >= 0) endSeqNo = new Fields.EndSeqNo(0); else if (beginString.CompareTo(FixValues.BeginString.FIX41) <= 0) endSeqNo = new Fields.EndSeqNo(999999); else endSeqNo = new Fields.EndSeqNo(msgSeqNum - 1); resendRequest.SetField(beginSeqNo); resendRequest.SetField(endSeqNo); InitializeHeader(resendRequest); if (SendRaw(resendRequest, 0)) { this.Log.OnEvent("Sent ResendRequest FROM: " + beginSeqNo.Obj + " TO: " + endSeqNo.Obj); state_.SetResendRange(beginSeqNo.Obj, msgSeqNum - 1); return true; } else { this.Log.OnEvent("Error sending ResendRequest (" + beginSeqNo.Obj + " ," + endSeqNo.Obj + ")"); return false; } }