示例#1
0
 public void ProcessRequestAsync(IpcRequest request)
 {
     if (request.RunOnSequentialQueue)
     {
         // Run on queue, with a unique ID since each request is unique
         _sequentialTaskQueue.Enqueue(new TaskId(String.Format("RequestId={0}", request.RequestId)), t => ProcessRequestWorker(request));
     }
     else
     {
         _customThreadPool.RunAsync(() => ProcessRequestWorker(request));
     }
 }
 public void ProcessRequestAsync(IpcRequest request)
 {
     _customThreadPool.RunAsync(() => ProcessRequestTask(request));
 }
示例#3
0
 private void FileSystemProcessorOnFilesChanged(object sender, FilesChangedEventArgs filesChangedEventArgs)
 {
     _customThreadPool.RunAsync(() => UpdateFileContents(filesChangedEventArgs.ChangedFiles));
 }