/// <summary> /// Disposes and removes a channel from this server /// </summary> /// <param name="channel">The channel to remove</param> public void DisposeChannel(IServerChannel channel) { var id = _channelMgr.RemoveChannel(channel); OnChannelDisposed.Raise(this, new ChannelEventArgs(id)); }
/// <summary> /// Disposes and removes a channel from this server /// </summary> /// <param name="pred">The predicate used to determine what channel to dispose and remove</param> public void DisposeChannel(Predicate <IChannel> pred) { var id = _channelMgr.RemoveChannel(pred); OnChannelDisposed.Raise(this, new ChannelEventArgs(id)); }
/// <summary> /// Disposes and removes a channel from this server /// </summary> /// <param name="id">The ID of the channel to remove</param> public void DisposeChannel(int id) { _channelMgr.RemoveChannel(id); OnChannelDisposed.Raise(this, new ChannelEventArgs(id)); }