Пример #1
0
        public void getWorkerInfoList_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            getWorkerInfoList_args args = new getWorkerInfoList_args();

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

            result.Success = iface_.getWorkerInfoList();
            oprot.WriteMessageBegin(new TMessage("getWorkerInfoList", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Пример #2
0
        public List <WorkerInfo> recv_getWorkerInfoList()
        {
            TMessage msg = iprot_.ReadMessageBegin();

            if (msg.Type == TMessageType.Exception)
            {
                TApplicationException x = TApplicationException.Read(iprot_);
                iprot_.ReadMessageEnd();
                throw x;
            }
            getWorkerInfoList_result result = new getWorkerInfoList_result();

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.success)
            {
                return(result.Success);
            }
            throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getWorkerInfoList failed: unknown result");
        }