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

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

                try {
                    result.Success = iface_.query(args.ParamList);
                } catch (QueryFailureException qe) {
                    result.Qe = qe;
                }
                oprot.WriteMessageBegin(new TMessage("query", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Пример #2
0
            public void query_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                query_args args = new query_args();

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

                try {
                    result.Success = iface_.query(args.Query, args.Session);
                } catch (SearchException ex) {
                    result.Ex = ex;
                } catch (SessionException se) {
                    result.Se = se;
                }
                oprot.WriteMessageBegin(new TMessage("query", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Пример #3
0
 public void query_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   query_args args = new query_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   query_result result = new query_result();
   try {
     result.Success = iface_.query(args.Query, args.Session);
   } catch (SearchException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("query", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }