예제 #1
0
 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();
 }
예제 #2
0
 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
 }