示例#1
0
            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();
            }
示例#2
0
            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();
            }
示例#3
0
            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));
            }