public void bet_Process(int seqid, TProtocol iprot, TProtocol oprot) { bet_args args = new bet_args(); args.Read(iprot); iprot.ReadMessageEnd(); bet_result result = new bet_result(); iface_.bet(args.Competitor, args.Bet); oprot.WriteMessageBegin(new TMessage("bet", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_bet(API.Competitor competitor, API.Bet bet) #endif { oprot_.WriteMessageBegin(new TMessage("bet", TMessageType.Call, seqid_)); bet_args args = new bet_args(); args.Competitor = competitor; args.Bet = bet; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }