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

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

                iface_.index(args.Info);
                oprot.WriteMessageBegin(new TMessage("index", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
Пример #2
0
            public void index_Process(int seqid, TProtocol iprot, TProtocol oprot)
            {
                index_args args = new index_args();

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

                try {
                    iface_.index(args.Info);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("index", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }