コード例 #1
0
        public void Execute()
        {
            _logger.Info("Cleaning up deleted wallpapers");

            foreach (var deleted in _wallpaperManager.GetAllDeleted())
            {
                _logger.Debug("Cleaning up wallpaper '{0}'", deleted.Id);
                foreach (var file in deleted.Files)
                {
                    _wallpaperManager.DeleteFile(deleted, file);
                }

                _workItemManager.Delete(deleted.RawInformations);

                foreach (var action in _wallpaperActionManager.GetAll(deleted))
                {
                    _wallpaperActionManager.Delete(action.Id);
                }
            }
        }