Ejemplo n.º 1
0
 public bool recv_grant_privileges()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception)
     {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     grant_privileges_result result = new grant_privileges_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success)
     {
         return result.Success;
     }
     if (result.__isset.o1)
     {
         throw result.O1;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "grant_privileges failed: unknown result");
 }
Ejemplo n.º 2
0
 public void grant_privileges_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     grant_privileges_args args = new grant_privileges_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     grant_privileges_result result = new grant_privileges_result();
     try
     {
         result.Success = iface_.grant_privileges(args.Privileges);
     }
     catch (MetaException o1)
     {
         result.O1 = o1;
     }
     oprot.WriteMessageBegin(new TMessage("grant_privileges", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }