예제 #1
0
 public void GetChannelPropertyKeys_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     GetChannelPropertyKeys_args args = new GetChannelPropertyKeys_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     GetChannelPropertyKeys_result result = new GetChannelPropertyKeys_result();
     result.Success = iface_.GetChannelPropertyKeys(args.ChannelID);
     oprot.WriteMessageBegin(new TMessage("GetChannelPropertyKeys", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
예제 #2
0
 public List<string> recv_GetChannelPropertyKeys()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     GetChannelPropertyKeys_result result = new GetChannelPropertyKeys_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
         return result.Success;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetChannelPropertyKeys failed: unknown result");
 }