Ejemplo n.º 1
0
        public void getLocationInfoIncremental_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getLocationInfoIncremental_args args = new getLocationInfoIncremental_args();

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

            try
            {
                result.Success = iface_.getLocationInfoIncremental(args.Param);
                oprot.WriteMessageBegin(new TMessage("getLocationInfoIncremental", 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("getLocationInfoIncremental", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Ejemplo n.º 2
0
        public void send_getLocationInfoIncremental(string param)
        {
            oprot_.WriteMessageBegin(new TMessage("getLocationInfoIncremental", TMessageType.Call, seqid_));
            getLocationInfoIncremental_args args = new getLocationInfoIncremental_args();

            args.Param = param;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
Ejemplo n.º 3
0
        public IAsyncResult send_getLocationInfoIncremental(AsyncCallback callback, object state, string param)
        {
            oprot_.WriteMessageBegin(new TMessage("getLocationInfoIncremental", TMessageType.Call, seqid_));
            getLocationInfoIncremental_args args = new getLocationInfoIncremental_args();

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