public void submitBooking_Process(int seqid, TProtocol iprot, TProtocol oprot) { submitBooking_args args = new submitBooking_args(); args.Read(iprot); iprot.ReadMessageEnd(); submitBooking_result result = new submitBooking_result(); try { result.Success = iface_.submitBooking(args.BookingParams); } catch (SavariWala.ServerError err) { result.Err = err; } oprot.WriteMessageBegin(new TMessage("submitBooking", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_submitBooking(BookingParams bookingParams) #endif { oprot_.WriteMessageBegin(new TMessage("submitBooking", TMessageType.Call, seqid_)); submitBooking_args args = new submitBooking_args(); args.BookingParams = bookingParams; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }