コード例 #1
0
 public ConsoleTextBox(IConsoleAbstraction consoleAbstraction, int top, int height)
 {
     _consoleAbstraction = consoleAbstraction;
     _textBuffer         = new TextBuffer(height + 5);
     _height             = height;
     _top = top;
 }
コード例 #2
0
 public LineReaderWithPrompt(
     IAsyncLineReader asyncLineReader,
     IConsoleAbstraction consoleAbstraction,
     int height)
 {
     _consoleAbstraction = consoleAbstraction;
     _asyncLineReader    = asyncLineReader;
     _height             = height;
 }
コード例 #3
0
        public RemoteTraceMonitor(
            IConsoleAbstraction consoleAbstraction,
            int numberOfLines,
            bool isShowDebugMessage,
            ISystemInterrupter systemInterrupter,
            ISystemInfoMessageDispatcher systemInfoMessageDispatcher
            )
        {
            _numberOfLines               = numberOfLines;
            _systemInterrupter           = systemInterrupter;
            _consoleAbstraction          = consoleAbstraction;
            _systemInfoMessageDispatcher = systemInfoMessageDispatcher;
            _lineReaderWithPrompt        = new LineReaderWithPrompt(new AsyncLineReader(_consoleAbstraction), _consoleAbstraction, _numberOfLines + 1);
            _remoteTextBox               = new ConsoleTextBox(_consoleAbstraction, 0, _numberOfLines);
            _debugTextBox       = new ConsoleTextBox(_consoleAbstraction, _numberOfLines + 3, 7);
            _isShowDebugMessage = isShowDebugMessage;

            _systemInfoMessageDispatcher.InfoMessageReceived += InfoMessageReceivedHandler;
        }
コード例 #4
0
 public AsyncLineReader(IConsoleAbstraction consoleAbstraction)
 {
     _consoleAbstraction = consoleAbstraction;
 }