public ActiveSolutionBoundTracker(IHost host, IActiveSolutionTracker activeSolutionTracker, ILogger logger)
        {
            extensionHost   = host ?? throw new ArgumentNullException(nameof(host));
            solutionTracker = activeSolutionTracker ?? throw new ArgumentNullException(nameof(activeSolutionTracker));
            this.logger     = logger ?? throw new ArgumentNullException(nameof(logger));

            vsMonitorSelection = host.GetService <SVsShellMonitorSelection, IVsMonitorSelection>();
            vsMonitorSelection.GetCmdUIContextCookie(ref BoundSolutionUIContext.Guid, out boundSolutionContextCookie);

            configurationProvider = extensionHost.GetService <IConfigurationProviderService>();
            configurationProvider.AssertLocalServiceIsNotNull();

            errorListInfoBarController = extensionHost.GetService <IErrorListInfoBarController>();
            errorListInfoBarController.AssertLocalServiceIsNotNull();

            // The user changed the binding through the Team Explorer
            extensionHost.VisualStateManager.BindingStateChanged += OnBindingStateChanged;

            // The solution changed inside the IDE
            solutionTracker.ActiveSolutionChanged += OnActiveSolutionChanged;

            CurrentConfiguration = configurationProvider.GetConfiguration();

            SetBoundSolutionUIContext();
        }
        public ErrorListInfoBarController(IHost host, IUnboundProjectFinder unboundProjectFinder)
        {
            if (host == null)
            {
                throw new ArgumentNullException(nameof(host));
            }
            if (unboundProjectFinder == null)
            {
                throw new ArgumentNullException(nameof(unboundProjectFinder));
            }

            this.host = host;
            this.unboundProjectFinder = unboundProjectFinder;

            this.configProvider = host.GetService <IConfigurationProviderService>();
            this.configProvider.AssertLocalServiceIsNotNull();
        }
Exemplo n.º 3
0
 public HooksController(IConfigurationProviderService configurationService)
 {
     _configurationService = configurationService;
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 public ConsoleOutputService(IProcessReadingsService processDirectoryService, IConfigurationProviderService configurationProviderService)
 {
     _processDirectoryService      = processDirectoryService;
     _configurationProviderService = configurationProviderService;
 }