Ejemplo n.º 1
0
        public void send_getFullImg(string channel)
        {
            oprot_.WriteMessageBegin(new TMessage("getFullImg", TMessageType.Call, seqid_));
            getFullImg_args args = new getFullImg_args();

            args.Channel = channel;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            oprot_.Transport.Flush();
        }
Ejemplo n.º 2
0
        public IAsyncResult send_getFullImg(AsyncCallback callback, object state, string channel)
        {
            oprot_.WriteMessageBegin(new TMessage("getFullImg", TMessageType.Call, seqid_));
            getFullImg_args args = new getFullImg_args();

            args.Channel = channel;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
            return(oprot_.Transport.BeginFlush(callback, state));
        }
Ejemplo n.º 3
0
        public void getFullImg_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getFullImg_args args = new getFullImg_args();

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

            try
            {
                try
                {
                    result.Success = iface_.getFullImg(args.Channel);
                }
                catch (ICWException ex)
                {
                    result.Ex = ex;
                }
                oprot.WriteMessageBegin(new TMessage("getFullImg", 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("getFullImg", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }