Пример #1
0
        public void Handle(PublicAccessEntrySavedNotification notification)
        {
            var entities = _contentService.GetByIds(notification.SavedEntities.Select(e => e.ProtectedNodeId)).ToArray();

            if (entities.Any() == false)
            {
                return;
            }
            _notifier.Notify(_actions.GetAction <ActionProtect>(), entities);
        }
 public void Handle(PublicAccessEntrySavedNotification notification)
 {
     _distributedCache.RefreshPublicAccess();
 }