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(); }
public void send_chown(Pathname path, string owner, string group) { oprot_.WriteMessageBegin(new TMessage("chown", TMessageType.Call, seqid_)); chown_args args = new chown_args(); args.Path = path; args.Owner = owner; args.Group = group; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }