Exemplo n.º 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();
     result.Success = iface_.Insert(args.Entry);
     oprot.WriteMessageBegin(new TMessage("Insert", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Exemplo n.º 2
0
 public void send_Insert(CalculonDb.Entry entry)
 {
     oprot_.WriteMessageBegin(new TMessage("Insert", TMessageType.Call, seqid_));
     Insert_args args = new Insert_args();
     args.Entry = entry;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }