private void RedirectOutput() { _synchronizedOutput = new SynchronizedStringWriter(); _synchronizedErrorOutput = new SynchronizedStringWriter(); ClearOutput(); _host.SetOutput(_synchronizedOutput); _host.SetErrorOutput(_synchronizedErrorOutput); }
public Task <ExecutionResult> InitializeAsync() { var window = GetCurrentWindowOrThrow(); _interactiveHost.SetOutput(window.OutputWriter); _interactiveHost.SetErrorOutput(window.ErrorOutputWriter); return(ResetAsyncWorker()); }