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

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

            try {
                iface_.failRequest(args.Id);
            } catch (AuthorizationException aze) {
                result.Aze = aze;
            }
            oprot.WriteMessageBegin(new TMessage("failRequest", TMessageType.Reply, seqid));
            result.Write(oprot);
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }
        public void recv_failRequest()
        {
            TMessage msg = iprot_.ReadMessageBegin();

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

            result.Read(iprot_);
            iprot_.ReadMessageEnd();
            if (result.__isset.aze)
            {
                throw result.Aze;
            }
            return;
        }
 public void failRequest_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   failRequest_args args = new failRequest_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   failRequest_result result = new failRequest_result();
   try {
     iface_.failRequest(args.Id);
   } catch (AuthorizationException aze) {
     result.Aze = aze;
   }
   oprot.WriteMessageBegin(new TMessage("failRequest", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
 public void recv_failRequest()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   failRequest_result result = new failRequest_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.aze) {
     throw result.Aze;
   }
   return;
 }