Ejemplo n.º 1
0
 public void chown_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     chown_args args = new chown_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     chown_result result = new chown_result();
     try {
       iface_.chown(args.Path, args.Owner, args.Group);
     } catch (ThriftIOException ouch) {
       result.Ouch = ouch;
     }
     oprot.WriteMessageBegin(new TMessage("chown", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void recv_chown()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     chown_result result = new chown_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.ouch) {
       throw result.Ouch;
     }
     return;
 }