コード例 #1
0
 public void bet_request_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   bet_request_args args = new bet_request_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   bet_request_result result = new bet_request_result();
   result.Success = iface_.bet_request(args.Pot, args.Limits);
   oprot.WriteMessageBegin(new TMessage("bet_request", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
 public void send_bet_request(long pot, API.BetLimits limits)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("bet_request", TMessageType.Call, seqid_));
   bet_request_args args = new bet_request_args();
   args.Pot = pot;
   args.Limits = limits;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }