Esempio n. 1
0
        public void send_notifyLeaveRoom(string roomMid)
    #endif
        {
            oprot_.WriteMessageBegin(new TMessage("notifyLeaveRoom", TMessageType.Call, seqid_));
            notifyLeaveRoom_args args = new notifyLeaveRoom_args();

            args.RoomMid = roomMid;
            args.Write(oprot_);
            oprot_.WriteMessageEnd();
      #if SILVERLIGHT
            return(oprot_.Transport.BeginFlush(callback, state));
      #else
            oprot_.Transport.Flush();
      #endif
        }
Esempio n. 2
0
        public void notifyLeaveRoom_Process(int seqid, TProtocol iprot, TProtocol oprot)
        {
            notifyLeaveRoom_args args = new notifyLeaveRoom_args();

            args.Read(iprot);
            iprot.ReadMessageEnd();
            notifyLeaveRoom_result result = new notifyLeaveRoom_result();

            try
            {
                try
                {
                    iface_.notifyLeaveRoom(args.RoomMid);
                }
                catch (TalkException e)
                {
                    result.E = e;
                }
                oprot.WriteMessageBegin(new TMessage("notifyLeaveRoom", TMessageType.Reply, seqid));
                result.Write(oprot);
            }
            catch (TTransportException)
            {
                throw;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine("Error occurred in processor:");
                Console.Error.WriteLine(ex.ToString());
                TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error.");
                oprot.WriteMessageBegin(new TMessage("notifyLeaveRoom", TMessageType.Exception, seqid));
                x.Write(oprot);
            }
            oprot.WriteMessageEnd();
            oprot.Transport.Flush();
        }