private void MainThreadInitialization() { Dte = GetService(typeof(DTE)) as DTE2; var solutionExplorerControl = new HierarchyControl(this, _logger); _commandProcessor = new CommandProcessor(solutionExplorerControl, _logger); _keyDispatcher = new ConditionalKeyDispatcher( new SolutionExplorerDispatchCondition(solutionExplorerControl, _logger), new KeyDispatcher(_commandProcessor), _logger); }
private async System.Threading.Tasks.Task MainThreadInitializationAsync() { Dte = await GetServiceAsync(typeof(_DTE)) as DTE2; var solutionExplorerControl = new HierarchyControl(this, _logger); _commandProcessor = new CommandProcessor(solutionExplorerControl, _logger); _keyDispatcher = new ConditionalKeyDispatcher( new SolutionExplorerDispatchCondition(solutionExplorerControl, _logger), new KeyDispatcher(_commandProcessor), _logger); }