public FileSystemImageService(IRepository<FileSystemImageSettings> repository, IEventAggregator eventAggregator)
        {
            Repository = repository;
            EventAggregator = eventAggregator;

            _fileSystemImageSettings = Repository.Load();

            BeginLoadImageFiles();

            SubscribeToEvents();
        }
        private void OnSettingsChangedEvent(FileSystemImageSettings fileSystemImageSettings)
        {
            if (_fileSystemImageSettings.Path == fileSystemImageSettings.Path)
            {
                return;
            }

            _fileSystemImageSettings = fileSystemImageSettings;

            BeginLoadImageFiles();
        }