public void Run(IVisualStudioPackage package) { _uiDelayedOperationProcessor.Post(new DelayedOperation { Id = "SolutionExplorerHierarchyInitializer", Delay = TimeSpan.FromSeconds(2.0), Action = () => { var controller = _sourceExplorerHierarchyControllerFactory.CreateController(); controller.Activate(); } }); }
public void Enable(DirectoryEntry searchResults) { _trackingEntries.Clear(); _enabled = true; _searchResults.Clear(); // Delay to avoid processing results too often. _uiRequestProcessor.Post(new DelayedOperation { Id = _requestId, Delay = TimeSpan.FromSeconds(1.0), Action = () => CreateEntries(searchResults) }); }