public void recv_notifyLeaveRoom() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } notifyLeaveRoom_result result = new notifyLeaveRoom_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }
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(); }