public string recv_getCpuProfile() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getCpuProfile_result result = new getCpuProfile_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getCpuProfile failed: unknown result"); }
public void getCpuProfile_Process(int seqid, TProtocol iprot, TProtocol oprot) { getCpuProfile_args args = new getCpuProfile_args(); args.Read(iprot); iprot.ReadMessageEnd(); getCpuProfile_result result = new getCpuProfile_result(); result.Success = iface_.getCpuProfile(args.ProfileDurationInSec); oprot.WriteMessageBegin(new TMessage("getCpuProfile", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }