public Dictionary<string, long> recv_getCounters() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getCounters_result result = new getCounters_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getCounters failed: unknown result"); }
public void getCounters_Process(int seqid, TProtocol iprot, TProtocol oprot) { getCounters_args args = new getCounters_args(); args.Read(iprot); iprot.ReadMessageEnd(); getCounters_result result = new getCounters_result(); result.Success = iface_.getCounters(); oprot.WriteMessageBegin(new TMessage("getCounters", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }