private void AddMissingEntityToList(SecurityEntityInfo entity, IList <SecurityEntityInfo> entityInfoList) { if (entity != null && !entityInfoList.Any(c => c == entity)) { entityInfoList.Add(entity); } }
private void AddMissingEntityToList(NodeHead head, IList <SecurityEntityInfo> entityInfoList) { var sei = new SecurityEntityInfo(head); if (!entityInfoList.Any(c => c == sei)) { entityInfoList.Add(sei); } }
public void AddMissingEntityFromRepository(int contentId) { var sei = new SecurityEntityInfo(contentId); // workaround for non-indexed content (preview images): skip those items if (sei.IsSkippableContent()) { return; } AddMissingEntityToList(sei, MissingEntitiesFromRepository); }