Пример #1
0
 private void RedirectOutput()
 {
     _synchronizedOutput      = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     _host.SetOutput(_synchronizedOutput);
     _host.SetErrorOutput(_synchronizedErrorOutput);
 }
Пример #2
0
        public Task <ExecutionResult> InitializeAsync()
        {
            var window = GetCurrentWindowOrThrow();

            _interactiveHost.SetOutput(window.OutputWriter);
            _interactiveHost.SetErrorOutput(window.ErrorOutputWriter);
            return(ResetAsyncWorker());
        }