Beispiel #1
0
 public void getStruct_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     SharedService.getStruct_args getStructArgs = new SharedService.getStruct_args();
     getStructArgs.Read(iprot);
     iprot.ReadMessageEnd();
     SharedService.getStruct_result getStructResult = new SharedService.getStruct_result();
     getStructResult.Success = this.iface_.getStruct(getStructArgs.Key);
     oprot.WriteMessageBegin(new TMessage("getStruct", TMessageType.Reply, seqid));
     getStructResult.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Beispiel #2
0
 public SharedStruct recv_getStruct()
 {
     if (this.iprot_.ReadMessageBegin().Type == TMessageType.Exception)
     {
         TApplicationException tapplicationException = TApplicationException.Read(this.iprot_);
         this.iprot_.ReadMessageEnd();
         throw tapplicationException;
     }
     SharedService.getStruct_result getStructResult = new SharedService.getStruct_result();
     getStructResult.Read(this.iprot_);
     this.iprot_.ReadMessageEnd();
     if (getStructResult.__isset.success)
     {
         return(getStructResult.Success);
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getStruct failed: unknown result");
 }