示例#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 send_index(com.imd.doc.thrift.Info info)
      #endif
            {
                oprot_.WriteMessageBegin(new TMessage("index", TMessageType.Call, seqid_));
                index_args args = new index_args();

                args.Info = info;
                args.Write(oprot_);
                oprot_.WriteMessageEnd();
        #if SILVERLIGHT
                return(oprot_.Transport.BeginFlush(callback, state));
        #else
                oprot_.Transport.Flush();
        #endif
            }
示例#3
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();
            }