Пример #1
0
 public void send_leaveRoom(int reqSeq, string roomId)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("leaveRoom", TMessageType.Call, seqid_));
   leaveRoom_args args = new leaveRoom_args();
   args.ReqSeq = reqSeq;
   args.RoomId = roomId;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Пример #2
0
 public void leaveRoom_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   leaveRoom_args args = new leaveRoom_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   leaveRoom_result result = new leaveRoom_result();
   try {
     iface_.leaveRoom(args.ReqSeq, args.RoomId);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("leaveRoom", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }