Пример #1
0
 public Bool_Int16 recv_GetValueAsShort()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetValueAsShort_result result = new GetValueAsShort_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetValueAsShort failed: unknown result");
 }
Пример #2
0
 public void GetValueAsShort_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetValueAsShort_args args = new GetValueAsShort_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetValueAsShort_result result = new GetValueAsShort_result();
   result.Success = iface_.GetValueAsShort(args._id);
   oprot.WriteMessageBegin(new TMessage("GetValueAsShort", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }