public IpcRequestDispatcher(
   ICustomThreadPool customThreadPool,
   IIpcResponseQueue ipcResponseQueue,
   [ImportMany] IEnumerable<IProtocolHandler> protocolHandlers) {
   _customThreadPool = customThreadPool;
   _ipcResponseQueue = ipcResponseQueue;
   _protocolHandlers = protocolHandlers;
 }
 public IpcRequestDispatcher(
     ICustomThreadPool customThreadPool,
     IIpcResponseQueue ipcResponseQueue,
     [ImportMany] IEnumerable <IProtocolHandler> protocolHandlers)
 {
     _customThreadPool = customThreadPool;
     _ipcResponseQueue = ipcResponseQueue;
     _protocolHandlers = protocolHandlers;
 }
 public CustomTaskScheduler(ILogger logger,
                            ICustomThreadPool customThreadPool)
 {
     _logger                 = logger;
     _customThreadPool       = customThreadPool;
     _disposed               = false;
     _tasks                  = new BlockingCollection <Task>();
     cancellationTokenSource = new CancellationTokenSource();
 }
Beispiel #4
0
 public IpcRequestDispatcher(
     ICustomThreadPool customThreadPool,
     ITaskQueueFactory taskQueueFactory,
     IIpcResponseQueue ipcResponseQueue,
     [ImportMany] IEnumerable <IProtocolHandler> protocolHandlers)
 {
     _customThreadPool    = customThreadPool;
     _ipcResponseQueue    = ipcResponseQueue;
     _protocolHandlers    = protocolHandlers;
     _sequentialTaskQueue = taskQueueFactory.CreateQueue("IpcRequestDispatcher sequential requests queue");
 }
Beispiel #5
0
        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;
        }
Beispiel #6
0
 public TaskQueueFactory(ICustomThreadPool customThreadPool, IDateTimeProvider dateTimeProvider) {
   _customThreadPool = customThreadPool;
   _dateTimeProvider = dateTimeProvider;
 }
Beispiel #7
0
 public TaskQueue(ICustomThreadPool customThreadPool)
 {
     _customThreadPool = customThreadPool;
 }
Beispiel #8
0
 public TaskQueue(string description, ICustomThreadPool customThreadPool, IDateTimeProvider dateTimeProvider)
 {
     _description      = description;
     _customThreadPool = customThreadPool;
     _dateTimeProvider = dateTimeProvider;
 }
Beispiel #9
0
 public TaskQueue(string description, ICustomThreadPool customThreadPool, IDateTimeProvider dateTimeProvider) {
   _description = description;
   _customThreadPool = customThreadPool;
   _dateTimeProvider = dateTimeProvider;
 }
 public TaskQueueFactory(ICustomThreadPool customThreadPool)
 {
     _customThreadPool = customThreadPool;
 }
Beispiel #11
0
 public TaskQueueFactory(ICustomThreadPool customThreadPool, IDateTimeProvider dateTimeProvider)
 {
     _customThreadPool = customThreadPool;
     _dateTimeProvider = dateTimeProvider;
 }
Beispiel #12
0
 public TaskQueue(string description, ICustomThreadPool customThreadPool)
 {
     _description = description;
       _customThreadPool = customThreadPool;
 }
Beispiel #13
0
 public TaskQueue(ICustomThreadPool customThreadPool)
 {
     _customThreadPool = customThreadPool;
 }
 public TaskQueueFactory(ICustomThreadPool customThreadPool)
 {
     _customThreadPool = customThreadPool;
 }