public FileSystemListener(FileSystemListenerOptions options, IFileSerializer <T> serializer, ILogger <FileSystemListener <T> > logger) { _options = options; _logger = logger; _serializer = serializer; _status = false; if (!Directory.Exists(_options.Folder)) { Directory.CreateDirectory(_options.Folder); } if (!Directory.Exists(_options.CompletedFolder)) { Directory.CreateDirectory(_options.CompletedFolder); } }
public FileSystemPublisher(FileSystemListenerOptions options, IFileSerializer <T> serializer) { _options = options; _serializer = serializer; }