public void rename_Process(int seqid, TProtocol iprot, TProtocol oprot) { rename_args args = new rename_args(); args.Read(iprot); iprot.ReadMessageEnd(); rename_result result = new rename_result(); try { result.Success = iface_.rename(args.Path, args.Dest); } catch (ThriftIOException ouch) { result.Ouch = ouch; } oprot.WriteMessageBegin(new TMessage("rename", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_rename(Pathname path, Pathname dest) { oprot_.WriteMessageBegin(new TMessage("rename", TMessageType.Call, seqid_)); rename_args args = new rename_args(); args.Path = path; args.Dest = dest; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }