private static Header getHeaders(NetMessage message)
 {
     Header headers = new Header();
     headers.Parameters = new Dictionary<string, string>(message.Headers);
     return headers;
 }
Esempio n. 2
0
 public void Read(TProtocol iprot)
 {
     TField field;
       iprot.ReadStructBegin();
       while (true)
       {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) {
       break;
     }
     switch (field.ID)
     {
       case 1:
     if (field.Type == TType.Struct) {
       this.header = new Header();
       this.header.Read(iprot);
       this.__isset.header = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       case 2:
     if (field.Type == TType.Struct) {
       this.action = new Action();
       this.action.Read(iprot);
       this.__isset.action = true;
     } else {
       TProtocolUtil.Skip(iprot, field.Type);
     }
     break;
       default:
     TProtocolUtil.Skip(iprot, field.Type);
     break;
     }
     iprot.ReadFieldEnd();
       }
       iprot.ReadStructEnd();
 }