public TypedEventForwarder(
     ITypedEventSender typedEventSender,
     IFileSystemSnapshotManager fileSystemSnapshotManager,
     ISearchEngine searchEngine)
 {
     _typedEventSender          = typedEventSender;
     _fileSystemSnapshotManager = fileSystemSnapshotManager;
     _searchEngine = searchEngine;
 }
Exemplo 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();
        }
Exemplo 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;
        }
Exemplo n.º 4
0
 public GetDatabaseStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine, IIndexingServer indexingServer)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
     _indexingServer  = indexingServer;
 }
Exemplo n.º 5
0
 public GetFileSystemRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }
Exemplo n.º 6
0
 public GetProjectDetailsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
 }
Exemplo n.º 7
0
 public GetDirectoryEntriesMultipleRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }
Exemplo n.º 8
0
 public GetDatabaseStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager, ISearchEngine searchEngine)
 {
     _snapshotManager = snapshotManager;
     _searchEngine    = searchEngine;
 }
Exemplo n.º 9
0
 public GetDirectoryStatisticsRequestHandler(IFileSystemSnapshotManager snapshotManager)
 {
     _snapshotManager = snapshotManager;
 }