예제 #1
0
 public PCFMessage(MQMessage message)
 {
     this.list  = new ArrayList();
     this.mqCFH = new MQCFH(message);
     for (int i = 0; i < this.mqCFH.parameterCount; i++)
     {
         this.AddParameter(PCFParameter.NextParameter(message));
     }
 }
예제 #2
0
 public int GetIntParameterValue(int parameter)
 {
     for (int i = 0; i < this.list.Count; i++)
     {
         PCFParameter parameter2 = (PCFParameter)this.list[i];
         if (parameter2.Parameter == parameter)
         {
             if (parameter2.Type != 3)
             {
                 throw new PCFException(2, 0xbc6);
             }
             return((int)parameter2.GetValue());
         }
     }
     throw new PCFException(2, 0xbc6);
 }
예제 #3
0
 public string GetStringParameterValue(int parameter)
 {
     for (int i = 0; i < this.list.Count; i++)
     {
         PCFParameter parameter2 = (PCFParameter)this.list[i];
         if (parameter2.Parameter == parameter)
         {
             if (parameter2.Type != 4)
             {
                 throw new PCFException(2, 0xbc7);
             }
             return((string)parameter2.GetValue());
         }
     }
     throw new PCFException(2, 0xbc7);
 }
예제 #4
0
        public override int Write(MQMessage message)
        {
            int num = 0;

            message.ClearMessage();
            message.MessageType       = 1;
            message.Expiry            = 0x3e8;
            message.Format            = "MQADMIN ";
            message.Feedback          = 0;
            this.mqCFH.parameterCount = this.list.Count;
            num += this.mqCFH.Write(message);
            for (int i = 0; i < this.list.Count; i++)
            {
                PCFParameter parameter = (PCFParameter)this.list[i];
                num += parameter.Write(message);
            }
            return(num);
        }
예제 #5
0
 public void AddParameter(PCFParameter parameter)
 {
     this.list.Add(parameter);
 }