Ejemplo n.º 1
0
 public string recv_getName()
 {
     TMessage msg = iprot_.ReadMessageBegin();
       if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
       }
       getName_result result = new getName_result();
       result.Read(iprot_);
       iprot_.ReadMessageEnd();
       if (result.__isset.success) {
     return result.Success;
       }
       throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getName failed: unknown result");
 }
Ejemplo n.º 2
0
 public void getName_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     getName_args args = new getName_args();
       args.Read(iprot);
       iprot.ReadMessageEnd();
       getName_result result = new getName_result();
       result.Success = iface_.getName();
       oprot.WriteMessageBegin(new TMessage("getName", TMessageType.Reply, seqid));
       result.Write(oprot);
       oprot.WriteMessageEnd();
       oprot.Transport.Flush();
 }