public bool recv_exists()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
       TApplicationException x = TApplicationException.Read(iprot_);
       iprot_.ReadMessageEnd();
       throw x;
     }
     exists_result result = new exists_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     if (result.__isset.success) {
       return result.Success;
     }
     if (result.__isset.ouch) {
       throw result.Ouch;
     }
     throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "exists failed: unknown result");
 }
 public void exists_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     exists_args args = new exists_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     exists_result result = new exists_result();
     try {
       result.Success = iface_.exists(args.Path);
     } catch (ThriftIOException ouch) {
       result.Ouch = ouch;
     }
     oprot.WriteMessageBegin(new TMessage("exists", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
示例#3
0
 public void exists_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     exists_args args = new exists_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     exists_result result = new exists_result();
     try {
       result.Success = iface_.exists(args.Table, args.Get);
     } catch (TIOError io) {
       result.Io = io;
     }
     oprot.WriteMessageBegin(new TMessage("exists", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }