Exemplo n.º 1
0
        public void findAllMeciWithTickets_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            findAllMeciWithTickets_args args = new findAllMeciWithTickets_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            findAllMeciWithTickets_result result = new findAllMeciWithTickets_result();

            try
            {
                result.Success = iface_.findAllMeciWithTickets();
                oprot.WriteMessageBegin(new TMessage("findAllMeciWithTickets", 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("findAllMeciWithTickets", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Exemplo n.º 2
0
        public void send_findAllMeciWithTickets()
        {
            oprot_.WriteMessageBegin(new TMessage("findAllMeciWithTickets", TMessageType.Call, seqid_));
            findAllMeciWithTickets_args args = new findAllMeciWithTickets_args();

            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
Exemplo n.º 3
0
        public IAsyncResult send_findAllMeciWithTickets(AsyncCallback callback, object state)
        {
            oprot_.WriteMessageBegin(new TMessage("findAllMeciWithTickets", TMessageType.Call, seqid_));
            findAllMeciWithTickets_args args = new findAllMeciWithTickets_args();

            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            return(oprot_.Transport.BeginFlush(callback, state));
        }