public TypedEventForwarder( ITypedEventSender typedEventSender, IFileSystemProcessor fileSystemProcessor, ISearchEngine searchEngine) { _typedEventSender = typedEventSender; _fileSystemProcessor = fileSystemProcessor; _searchEngine = searchEngine; }
public static void Initialize(TestContext context) { _container = SetupServerMefContainer(); _registry = _container.GetExportedValue<IFileSystemProcessor>(); _searchEngine = _container.GetExportedValue<ISearchEngine>(); _searchEngine.FilesLoaded += (sender, result) => _serverReadyEvent.Set(); _testFile = Utils.GetChromiumTestEnlistmentFile(); _registry.RegisterFile(new FullPath(_testFile.FullName)); }
public static void Initialize(TestContext context) { _container = SetupServerMefContainer(); _registry = _container.GetExportedValue <IFileSystemProcessor>(); _searchEngine = _container.GetExportedValue <ISearchEngine>(); _searchEngine.FilesLoaded += (sender, result) => _serverReadyEvent.Set(); _testFile = Utils.GetChromiumTestEnlistmentFile(); _registry.RegisterFile(new FullPath(_testFile.FullName)); }
public FileSystemProvider(string rootPath, IFileSystemProcessor fileSystemProcessor) { FileSystemProcessor = fileSystemProcessor ?? throw new ArgumentNullException(nameof(fileSystemProcessor)); if (rootPath == null) { throw new ArgumentNullException(nameof(rootPath)); } RootDirectory = new DirectoryInfo(rootPath); if (!FileSystemProcessor.Exists(RootDirectory)) { throw new DirectoryNotFoundException(); } if (!IsAccessAllowed(rootPath)) { throw new UnauthorizedAccessException(); } }
public SearchEngine( IFileSystemProcessor fileSystemProcessor, IFileSystemNameFactory fileSystemNameFactory, ICustomThreadPool customThreadPool, IFileDatabaseFactory fileDatabaseFactory, IProjectDiscovery projectDiscovery, ISearchStringParser searchStringParser, IOperationProcessor <OperationResultEventArgs> fileLoadingOperationProcessor) { _fileSystemNameFactory = fileSystemNameFactory; _customThreadPool = customThreadPool; _fileDatabaseFactory = fileDatabaseFactory; _projectDiscovery = projectDiscovery; _searchStringParser = searchStringParser; _fileLoadingOperationProcessor = fileLoadingOperationProcessor; // Create a "Null" state _currentFileDatabase = _fileDatabaseFactory.CreateEmpty(); // Setup computing a new state everytime a new tree is computed. fileSystemProcessor.SnapshotComputed += FileSystemProcessorOnSnapshotComputed; fileSystemProcessor.FilesChanged += FileSystemProcessorOnFilesChanged; }
public SearchEngine( IFileSystemProcessor fileSystemProcessor, IFileSystemNameFactory fileSystemNameFactory, ITaskQueueFactory taskQueueFactory, IFileDatabaseFactory fileDatabaseFactory, IProjectDiscovery projectDiscovery, ICompiledTextSearchDataFactory compiledTextSearchDataFactory, IOperationProcessor operationProcessor) { _fileSystemNameFactory = fileSystemNameFactory; _taskQueue = taskQueueFactory.CreateQueue("SearchEngine Task Queue"); _fileDatabaseFactory = fileDatabaseFactory; _projectDiscovery = projectDiscovery; _compiledTextSearchDataFactory = compiledTextSearchDataFactory; _operationProcessor = operationProcessor; // Create a "Null" state _currentFileDatabase = _fileDatabaseFactory.CreateEmpty(); // Setup computing a new state everytime a new tree is computed. fileSystemProcessor.SnapshotComputed += FileSystemProcessorOnSnapshotComputed; fileSystemProcessor.FilesChanged += FileSystemProcessorOnFilesChanged; }
public GetFileSystemVersionRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public GetDirectoryStatisticsRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public UnregisterFileRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public RemoveFileNameRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public GetDatabaseStatisticsRequestHandler(IFileSystemProcessor processor, ISearchEngine searchEngine) { _processor = processor; _searchEngine = searchEngine; }
public RegisterFileRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public GetFileSystemRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public RefreshFileSystemTreeRequestHandler(IFileSystemProcessor processor) { _processor = processor; }
public AddFileNameRequestHandler(IFileSystemProcessor processor) { _processor = processor; }