예제 #1
0
 public FilesMoverService(FilesMoverServiceOptions options,
                          ILogger logger, IFilesMover filesMover, IFoldersListener foldersListener)
 {
     _rules = options.Rules;
     _defaultDestinationFolder = options.DefaultDestinationFolder;
     _logger                       = logger;
     _filesMover                   = filesMover;
     _foldersListener              = foldersListener;
     _foldersListener.FileCreated += ProccessCreatedFile;
 }
예제 #2
0
        public FilesMoverService(FilesMoverServiceOptions options)
        {
            _rules = options.Rules;
            _defaultDestinationFolder = options.DefaultDestinationFolder;

            _logger                       = new ConsoleLogger();
            _filesMover                   = new DefaultFilesMover(_logger);
            _foldersListener              = new DefaultFoldersListener(options.Folders, _logger);
            _foldersListener.FileCreated += ProccessCreatedFile;
        }