Beispiel #1
0
        private void CreateParser()
        {
            FileSystemParser fileSystemParser =
                new FileSystemParser(new FileSystemListener(), new List <string> {
                FolderName
            });

            _asyncFileSystemParser = new AsyncFileSystemParser(fileSystemParser, _delayIntervalInSeconds);
            _asyncFileSystemParser.ParsingFinished += HandleParsingFinished;
        }
 //For test purposes
 public CachedFileSystemParser(IFileSystemParser fileSystemParser,
     ICacheSerializer cacheSerializer,
     IFileSystemListener fileSystemListener,
     IRegistryService registryService,
     IAsyncFileSystemParser asyncFileSystemParser,
     bool appRunOnStartup,
     int updatesCountToWrite)
     : this(fileSystemParser, cacheSerializer, fileSystemListener, registryService, asyncFileSystemParser, appRunOnStartup)
 {
     _updatesCountToWrite = updatesCountToWrite;
 }
Beispiel #3
0
 //For test purposes
 public CachedFileSystemParser(IFileSystemParser fileSystemParser,
                               ICacheSerializer cacheSerializer,
                               IFileSystemListener fileSystemListener,
                               IRegistryService registryService,
                               IAsyncFileSystemParser asyncFileSystemParser,
                               bool appRunOnStartup,
                               int updatesCountToWrite)
     : this(fileSystemParser, cacheSerializer, fileSystemListener, registryService, asyncFileSystemParser, appRunOnStartup)
 {
     _updatesCountToWrite = updatesCountToWrite;
 }
        public CachedFileSystemParser(IFileSystemParser fileSystemParser,
            ICacheSerializer cacheSerializer,
            IFileSystemListener fileSystemListener,
            IRegistryService registryService,
            IAsyncFileSystemParser asyncFileSystemParser,
            bool appRunOnStartup)
        {
            _cacheSerializer = cacheSerializer;
            _fileSystemListener = fileSystemListener;
            _registryService = registryService;
            _fileSystemParser = fileSystemParser;
            _asyncFileSystemParser = asyncFileSystemParser;
            _fileSystemFilter = new FileSystemFilter();

            Initialize(appRunOnStartup);
        }
Beispiel #5
0
        public CachedFileSystemParser(IFileSystemParser fileSystemParser,
                                      ICacheSerializer cacheSerializer,
                                      IFileSystemListener fileSystemListener,
                                      IRegistryService registryService,
                                      IAsyncFileSystemParser asyncFileSystemParser,
                                      bool appRunOnStartup)
        {
            _cacheSerializer       = cacheSerializer;
            _fileSystemListener    = fileSystemListener;
            _registryService       = registryService;
            _fileSystemParser      = fileSystemParser;
            _asyncFileSystemParser = asyncFileSystemParser;
            _fileSystemFilter      = new FileSystemFilter();

            Initialize(appRunOnStartup);
        }
 private void CreateParser()
 {
     FileSystemParser fileSystemParser =
         new FileSystemParser(new FileSystemListener(), new List<string> {FolderName});
     _asyncFileSystemParser = new AsyncFileSystemParser(fileSystemParser, _delayIntervalInSeconds);
     _asyncFileSystemParser.ParsingFinished += HandleParsingFinished;
 }