Exemple #1
0
		internal bool RemoveMember(Member member)
		{
			bool ignored;
			foreach (var channel in Channels)
			{
				member.RemoveChannel(channel.Id);
				channel._areMembersStale = true;
			}
			return _members.TryRemove(member.UserId, out ignored);
		}
Exemple #2
0
		internal bool RemoveMember(Member member)
		{
			bool ignored;
			foreach (var channel in Channels)
			{
				member.RemoveChannel(channel.Id);
				channel.InvalidatePermissionsCache(member.UserId);
			}
			return _members.TryRemove(member.UserId, out ignored);
		}