BeginSeqNo Field
Inheritance: IntField
Exemplo n.º 1
0
 public ResendRequest(
     QuickFix.Fields.BeginSeqNo aBeginSeqNo,
     QuickFix.Fields.EndSeqNo aEndSeqNo
     ) : this()
 {
     this.BeginSeqNo = aBeginSeqNo;
     this.EndSeqNo   = aEndSeqNo;
 }
Exemplo n.º 2
0
 public void Set(QuickFix.Fields.BeginSeqNo val) 
 { 
     this.BeginSeqNo = val;
 }
Exemplo n.º 3
0
 public bool IsSet(QuickFix.Fields.BeginSeqNo val)
 {
     return(IsSetBeginSeqNo());
 }
Exemplo n.º 4
0
 public QuickFix.Fields.BeginSeqNo Get(QuickFix.Fields.BeginSeqNo val)
 {
     GetField(val);
     return(val);
 }
Exemplo n.º 5
0
 public void Set(QuickFix.Fields.BeginSeqNo val)
 {
     this.BeginSeqNo = val;
 }
Exemplo n.º 6
0
        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;
            }
        }