public TypedEventForwarder(
     ITypedEventSender typedEventSender,
     IFileSystemSnapshotManager fileSystemSnapshotManager,
     ISearchEngine searchEngine)
 {
     _typedEventSender          = typedEventSender;
     _fileSystemSnapshotManager = fileSystemSnapshotManager;
     _searchEngine = searchEngine;
 }
Esempio n. 2
0
        public IndexingServer(
            IDateTimeProvider dateTimeProvider,
            IFileSystemSnapshotManager fileSystemSnapshotManager,
            ITaskQueueFactory taskQueueFactory,
            ISearchEngine searchEngine)
        {
            _dateTimeProvider          = dateTimeProvider;
            _fileSystemSnapshotManager = fileSystemSnapshotManager;
            _stateChangeTaskQueue      = taskQueueFactory.CreateQueue("IndexingServer State Change Task Queue");

            _fileSystemSnapshotManager.SnapshotScanStarted    += FileSystemSnapshotManagerOnSnapshotScanStarted;
            _fileSystemSnapshotManager.SnapshotScanFinished   += FileSystemSnapshotManagerOnSnapshotScanFinished;
            _fileSystemSnapshotManager.FileSystemWatchPaused  += FileSystemSnapshotManagerOnFileSystemWatchPaused;
            _fileSystemSnapshotManager.FileSystemWatchResumed += FileSystemSnapshotManagerOnFileSystemWatchResumed;

            searchEngine.FilesLoading += SearchEngineOnFilesLoading;
            searchEngine.FilesLoaded  += SearchEngineOnFilesLoaded;
            _currentState              = GetCurrentState();
        }
Esempio n. 3
0
        public SearchEngine(
            IFileSystemSnapshotManager fileSystemSnapshotManager,
            IFileSystemNameFactory fileSystemNameFactory,
            ILongRunningFileSystemTaskQueue taskQueue,
            IFileDatabaseSnapshotFactory fileDatabaseSnapshotFactory,
            IProjectDiscovery projectDiscovery,
            ICompiledTextSearchDataFactory compiledTextSearchDataFactory,
            IOperationProcessor operationProcessor)
        {
            _fileSystemNameFactory         = fileSystemNameFactory;
            _taskQueue                     = taskQueue;
            _fileDatabaseSnapshotFactory   = fileDatabaseSnapshotFactory;
            _projectDiscovery              = projectDiscovery;
            _compiledTextSearchDataFactory = compiledTextSearchDataFactory;
            _operationProcessor            = operationProcessor;

            // Create a "Null" state
            _currentFileDatabase = _fileDatabaseSnapshotFactory.CreateEmpty();

            // Setup computing a new state everytime a new tree is computed.
            fileSystemSnapshotManager.SnapshotScanFinished += FileSystemSnapshotManagerOnSnapshotScanFinished;
            fileSystemSnapshotManager.FilesChanged         += FileSystemSnapshotManagerOnFilesChanged;
        }
Esempio n. 4
0
 public GetDatabaseStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine, IIndexingServer indexingServer)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
     _indexingServer  = indexingServer;
 }
Esempio n. 5
0
 public GetFileSystemRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }
Esempio n. 6
0
 public GetProjectDetailsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
 }
Esempio n. 7
0
 public GetDirectoryEntriesMultipleRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }
Esempio n. 8
0
 public GetDatabaseStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
 }
Esempio n. 9
0
 public GetDirectoryStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }