public void fetchResults_Process(int seqid, TProtocol iprot, TProtocol oprot) { fetchResults_args args = new fetchResults_args(); args.Read(iprot); iprot.ReadMessageEnd(); fetchResults_result result = new fetchResults_result(); result.Success = iface_.fetchResults(args.Id, args.Count); oprot.WriteMessageBegin(new TMessage("fetchResults", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_fetchResults(int id, int count) #endif { oprot_.WriteMessageBegin(new TMessage("fetchResults", TMessageType.Call, seqid_)); fetchResults_args args = new fetchResults_args(); args.Id = id; args.Count = count; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }