예제 #1
0
 public string recv_GetLibraryVersion()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   GetLibraryVersion_result result = new GetLibraryVersion_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetLibraryVersion failed: unknown result");
 }
예제 #2
0
 public void GetLibraryVersion_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   GetLibraryVersion_args args = new GetLibraryVersion_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   GetLibraryVersion_result result = new GetLibraryVersion_result();
   result.Success = iface_.GetLibraryVersion(args._homeId);
   oprot.WriteMessageBegin(new TMessage("GetLibraryVersion", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }