Esempio n. 1
0
 public void getPlugin_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getPlugin_args args = new getPlugin_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getPlugin_result result = new getPlugin_result();
   try {
     result.Success = iface_.getPlugin(args.AuthString, args.Name);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("getPlugin", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Esempio n. 2
0
 public Plugin recv_getPlugin()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getPlugin_result result = new getPlugin_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, "getPlugin failed: unknown result");
 }