public void RememberUserGroups(UserAndChannel userAndChannel, IList <UserGroup> userGroups) { rememberedUserGroups[userAndChannel] = userGroups; }
public bool TryRetrieveSameUserGroups(UserAndChannel userAndChannel, out IList <UserGroup> userGroups) { return(rememberedUserGroups.TryGetValue(userAndChannel, out userGroups)); }
protected bool Equals(UserAndChannel other) { return(UserId == other.UserId && ChannelId == other.ChannelId); }