| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Diagnostics; |
| | | 4 | | using System.IO; |
| | | 5 | | using System.Text; |
| | | 6 | | using Mklinker.Abstractions; |
| | | 7 | | |
| | | 8 | | namespace Mklinker { |
| | | 9 | | |
| | | 10 | | class Process : IProcess { |
| | | 11 | | |
| | | 12 | | readonly System.Diagnostics.Process process; |
| | | 13 | | |
| | 0 | 14 | | StreamWriter IProcess.StandardInput => process.StandardInput; |
| | 0 | 15 | | StreamReader IProcess.StandardOutput => process.StandardOutput; |
| | 0 | 16 | | StreamReader IProcess.StandardError => process.StandardError; |
| | | 17 | | |
| | 0 | 18 | | public Process () {} |
| | | 19 | | |
| | 0 | 20 | | Process (System.Diagnostics.Process process) { |
| | 0 | 21 | | this.process = process; |
| | 0 | 22 | | } |
| | | 23 | | |
| | 0 | 24 | | IProcess IProcess.Start(ProcessStartInfo processStartInfo) { |
| | 0 | 25 | | return new Process(System.Diagnostics.Process.Start(processStartInfo)); |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | } |
| | | 29 | | |
| | | 30 | | } |