Esempio n. 1
0
        protected override void Initialize()
        {
            _logger           = new FileLogger(Path.GetTempPath(), autoFlush: true);
            _solutionMonitor  = new VsSolutionMonitor(this, _logger);
            _uiContextMonitor = new UiContextMonitor(_logger);

            _uiContextMonitor.AddContext(KnownUIContexts.NoSolutionContext, "NoSolution");
            _uiContextMonitor.AddContext(KnownUIContexts.SolutionOpeningContext, "SolutionOpening");
            _uiContextMonitor.AddContext(KnownUIContexts.SolutionExistsContext, "SolutionExists");
            _uiContextMonitor.AddContext(KnownUIContexts.SolutionExistsAndFullyLoadedContext, "SolutionExistsAndFullyLoaded");
            _uiContextMonitor.AddContext(KnownUIContexts.SolutionExistsAndNotBuildingAndNotDebuggingContext, "SolutionExistsAndNotBuildingAndNotDebugging");
            _uiContextMonitor.AddContext(KnownUIContexts.SolutionBuildingContext, "SolutionBuilding");
        }