Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public FileSystemPublisher(FileSystemListenerOptions options, IFileSerializer <T> serializer)
 {
     _options    = options;
     _serializer = serializer;
 }