public void send_notifyLeaveGroup(string groupMid) #endif { oprot_.WriteMessageBegin(new TMessage("notifyLeaveGroup", TMessageType.Call, seqid_)); notifyLeaveGroup_args args = new notifyLeaveGroup_args(); args.GroupMid = groupMid; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void notifyLeaveGroup_Process(int seqid, TProtocol iprot, TProtocol oprot) { notifyLeaveGroup_args args = new notifyLeaveGroup_args(); args.Read(iprot); iprot.ReadMessageEnd(); notifyLeaveGroup_result result = new notifyLeaveGroup_result(); try { try { iface_.notifyLeaveGroup(args.GroupMid); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("notifyLeaveGroup", 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("notifyLeaveGroup", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }