예제 #1
0
 public void Run(IVisualStudioPackage package)
 {
     _dispatchThreadDelayedOperationExecutor.Post(new DelayedOperation {
         Id     = "SolutionExplorerHierarchyInitializer",
         Delay  = TimeSpan.FromSeconds(2.0),
         Action = () => {
             var controller = _sourceExplorerHierarchyControllerFactory.CreateController();
             controller.Activate();
         }
     });
 }
예제 #2
0
        public void Enable(DirectoryEntry searchResults)
        {
            _trackingEntries.Clear();

            _enabled = true;
            _searchResults.Clear();

            // Delay to avoid processing results too often.
            _dispatchThreadRequestExecutor.Post(new DelayedOperation {
                Id     = _requestId,
                Delay  = TimeSpan.FromSeconds(1.0),
                Action = () => CreateEntries(searchResults)
            });
        }