Beispiel #1
0
 public void NewModel_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
     NewModel_args args = new NewModel_args();
     args.Read(iprot);
     iprot.ReadMessageEnd();
     NewModel_result result = new NewModel_result();
     iface_.NewModel();
     oprot.WriteMessageBegin(new TMessage("NewModel", TMessageType.Reply, seqid));
     result.Write(oprot);
     oprot.WriteMessageEnd();
     oprot.Transport.Flush();
 }
Beispiel #2
0
 public void recv_NewModel()
 {
     TMessage msg = iprot_.ReadMessageBegin();
     if (msg.Type == TMessageType.Exception) {
         TApplicationException x = TApplicationException.Read(iprot_);
         iprot_.ReadMessageEnd();
         throw x;
     }
     NewModel_result result = new NewModel_result();
     result.Read(iprot_);
     iprot_.ReadMessageEnd();
     return;
 }