public void GetSUCNodeId_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetSUCNodeId_args args = new GetSUCNodeId_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetSUCNodeId_result result = new GetSUCNodeId_result(); result.Success = iface_.GetSUCNodeId(args._homeId); oprot.WriteMessageBegin(new TMessage("GetSUCNodeId", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public sbyte recv_GetSUCNodeId() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetSUCNodeId_result result = new GetSUCNodeId_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetSUCNodeId failed: unknown result"); }