public void sub_Process(int seqid, TProtocol iprot, TProtocol oprot) { sub_args args = new sub_args(); args.Read(iprot); iprot.ReadMessageEnd(); sub_result result = new sub_result(); result.Success = iface_.sub(args.A, args.B); oprot.WriteMessageBegin(new TMessage("sub", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_sub(int a, int b) #endif { oprot_.WriteMessageBegin(new TMessage("sub", TMessageType.Call, seqid_)); sub_args args = new sub_args(); args.A = a; args.B = b; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }