예제 #1
0
 public void installPlugin_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   installPlugin_args args = new installPlugin_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   installPlugin_result result = new installPlugin_result();
   try {
     result.Success = iface_.installPlugin(args.AuthString, args.DownloadUrl, args.Md5);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("installPlugin", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public bool recv_installPlugin()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   installPlugin_result result = new installPlugin_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aex) {
     throw result.Aex;
   }
   if (result.__isset.dex) {
     throw result.Dex;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "installPlugin failed: unknown result");
 }