Ejemplo n.º 1
0
 public void msgPull_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   msgPull_args args = new msgPull_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   msgPull_result result = new msgPull_result();
   try {
     result.Success = iface_.msgPull(args.Msg, args.Session);
   } catch (ChatException ex) {
     result.Ex = ex;
   } catch (SessionException se) {
     result.Se = se;
   }
   oprot.WriteMessageBegin(new TMessage("msgPull", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void send_msgPull(ChatMessagePull msg, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("msgPull", TMessageType.Call, seqid_));
   msgPull_args args = new msgPull_args();
   args.Msg = msg;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }