Пример #1
0
 public DbgEngineHostUserInterface(IDebugger debugger, ConsoleColorProxy consoleColors, PSHost host)
 {
     _debugger      = debugger;
     _consoleColors = consoleColors;
     _host          = host;
     _rawUi         = new DbgEngineRawUserInterface();
 }
Пример #2
0
        public DbgPsHost(IDebugger debugger, ExitManager exitManager)
        {
            _exitManager = exitManager;
            var consoleColors = new ConsoleColorProxy
            {
                ErrorForegroundColor    = ConsoleColor.Red,
                ErrorBackgroundColor    = ConsoleColor.Black,
                WarningForegroundColor  = ConsoleColor.Yellow,
                WarningBackgroundColor  = ConsoleColor.Black,
                DebugForegroundColor    = ConsoleColor.Yellow,
                DebugBackgroundColor    = ConsoleColor.Black,
                VerboseForegroundColor  = ConsoleColor.Yellow,
                VerboseBackgroundColor  = ConsoleColor.Black,
                ProgressForegroundColor = ConsoleColor.Yellow,
                ProgressBackgroundColor = ConsoleColor.DarkCyan,
            };

            PrivateData = new PSObject(consoleColors);
            _dbgEngineHostUserInterface = new DbgEngineHostUserInterface(debugger, consoleColors, this);
        }