public void newBookings_Process(int seqid, TProtocol iprot, TProtocol oprot) { newBookings_args args = new newBookings_args(); args.Read(iprot); iprot.ReadMessageEnd(); newBookings_result result = new newBookings_result(); try { iface_.newBookings(args.Rezervari); oprot.WriteMessageBegin(new TMessage("newBookings", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("newBookings", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void send_newBookings(List <Rezervare> rezervari) { oprot_.WriteMessageBegin(new TMessage("newBookings", TMessageType.Call, seqid_)); newBookings_args args = new newBookings_args(); args.Rezervari = rezervari; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public IAsyncResult send_newBookings(AsyncCallback callback, object state, List <Rezervare> rezervari) { oprot_.WriteMessageBegin(new TMessage("newBookings", TMessageType.Call, seqid_)); newBookings_args args = new newBookings_args(); args.Rezervari = rezervari; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }