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