internal override bool IsLast(MQMessage message)
        {
            cfh.Initialize(message);

            String current = null;
            int    count   = this.cfh.ParameterCount;

            while (count > 0)
            {
                PcfParameter p  = PcfParameter.NextParameter(message);
                int          id = p.Parameter;
                if (id == MQC.MQBACF_RESPONSE_SET)
                {
                    this.set.Add(p.GetStringValue());
                }
                else if (id == MQC.MQBACF_RESPONSE_ID)
                {
                    current = p.GetStringValue();
                    this.set.Add(current);
                }
                count--;
            }

            message.Seek(0);

            if ((this.cfh.Control == 1) && (current != null))
            {
                this.set.Remove(current);
            }
            return(this.set.Count == 0);
        }
Exemplo n.º 2
0
 public PcfMessage(MQMessage message)
 {
     _list  = new List <PcfParameter>();
     _mqCfh = new Mqcfh(message);
     for (var i = 0; i < _mqCfh.ParameterCount; i++)
     {
         AddParameter(PcfParameter.NextParameter(message));
     }
 }
Exemplo n.º 3
0
 public void AddParameter(PcfParameter parameter)
 {
     _list.Add(parameter);
 }