private void OnSessionOutput(object sender, ROutputEventArgs e) { if (_output != null && _errors != null) { if (e.OutputType == OutputType.Error) { _errors.Append(e.Message); } else { _output.Append(e.Message); } } }
private void SessionOnOutput(object sender, ROutputEventArgs args) { if (args.OutputType == OutputType.Output) { Write(args.Message.ToUnicodeQuotes()); } else { WriteErrorLine(args.Message); } }