コード例 #1
0
 public void RedirectOutput()
 {
     _synchronizedOutput      = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     Host.SetOutputs(_synchronizedOutput, _synchronizedErrorOutput);
 }
コード例 #2
0
 private void RedirectOutput()
 {
     _synchronizedOutput      = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     Host.Output      = _synchronizedOutput;
     Host.ErrorOutput = _synchronizedErrorOutput;
 }
コード例 #3
0
 private void RedirectOutput()
 {
     _synchronizedOutput      = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     _host.SetOutput(_synchronizedOutput);
     _host.SetErrorOutput(_synchronizedErrorOutput);
 }
コード例 #4
0
 internal void RedirectOutput()
 {
     _synchronizedOutput = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     Host.Output = _synchronizedOutput;
     Host.ErrorOutput = _synchronizedErrorOutput;
 }
コード例 #5
0
 private void RedirectOutput()
 {
     _synchronizedOutput = new SynchronizedStringWriter();
     _synchronizedErrorOutput = new SynchronizedStringWriter();
     ClearOutput();
     _host.Output = _synchronizedOutput;
     _host.ErrorOutput = _synchronizedErrorOutput;
 }