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

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

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

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

                try {
                    iface_.insert(args.User);
                } catch (com.imd.common.thrift.ThriftException e) {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("insert", TMessageType.Reply, seqid));
                result.Write(oprot);
                oprot.WriteMessageEnd();
                oprot.Transport.Flush();
            }
 public void insert_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     insert_args args = new insert_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     insert_result result = new insert_result();
     try {
       iface_.insert(args.Key, args.Column_parent, args.Column, args.Consistency_level);
     } catch (InvalidRequestException ire) {
       result.Ire = ire;
     } catch (UnavailableException ue) {
       result.Ue = ue;
     } catch (TimedOutException te) {
       result.Te = te;
     }
     oprot.WriteMessageBegin(new TMessage("insert", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }