Beispiel #1
0
        public void flushCommands_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            flushCommands_args args = new flushCommands_args();

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

            result.Success = iface_.flushCommands(args.FlushCommandsReq);
            oprot.WriteMessageBegin(new TMessage("flushCommands", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
Beispiel #2
0
        public FlushCommandsResponse recv_flushCommands()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

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