Пример #1
0
 private void AddMissingEntityToList(SecurityEntityInfo entity, IList <SecurityEntityInfo> entityInfoList)
 {
     if (entity != null && !entityInfoList.Any(c => c == entity))
     {
         entityInfoList.Add(entity);
     }
 }
Пример #2
0
        private void AddMissingEntityToList(NodeHead head, IList <SecurityEntityInfo> entityInfoList)
        {
            var sei = new SecurityEntityInfo(head);

            if (!entityInfoList.Any(c => c == sei))
            {
                entityInfoList.Add(sei);
            }
        }
Пример #3
0
        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);
        }