Пример #1
0
 public void updateProfile_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   updateProfile_args args = new updateProfile_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   updateProfile_result result = new updateProfile_result();
   try {
     iface_.updateProfile(args.ReqSeq, args.Profile);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("updateProfile", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public void recv_updateProfile()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   updateProfile_result result = new updateProfile_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.e) {
     throw result.E;
   }
   return;
 }