public void stat_Process(int seqid, TProtocol iprot, TProtocol oprot) { stat_args args = new stat_args(); args.Read(iprot); iprot.ReadMessageEnd(); stat_result result = new stat_result(); try { result.Success = iface_.stat(args.Path); } catch (ThriftIOException ouch) { result.Ouch = ouch; } oprot.WriteMessageBegin(new TMessage("stat", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_stat(Pathname path) { oprot_.WriteMessageBegin(new TMessage("stat", TMessageType.Call, seqid_)); stat_args args = new stat_args(); args.Path = path; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }