public void send_buyCoinProduct(PaymentReservation paymentReservation) #endif { oprot_.WriteMessageBegin(new TMessage("buyCoinProduct", TMessageType.Call, seqid_)); buyCoinProduct_args args = new buyCoinProduct_args(); args.PaymentReservation = paymentReservation; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public void buyCoinProduct_Process(int seqid, TProtocol iprot, TProtocol oprot) { buyCoinProduct_args args = new buyCoinProduct_args(); args.Read(iprot); iprot.ReadMessageEnd(); buyCoinProduct_result result = new buyCoinProduct_result(); try { iface_.buyCoinProduct(args.PaymentReservation); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("buyCoinProduct", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }