-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProcessStreamOptions.cs
More file actions
39 lines (25 loc) · 1.15 KB
/
ProcessStreamOptions.cs
File metadata and controls
39 lines (25 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
namespace Gsemac.IO {
public class ProcessStreamOptions :
IProcessStreamOptions {
// Public members
public bool RedirectStandardOutput { get; set; } = true;
public bool RedirectStandardInput { get; set; } = false;
public bool RedirectStandardError { get; set; } = false;
public bool RedirectStandardErrorToStandardOutput {
get => redirectStandardErrorToStandardOutput;
set {
redirectStandardErrorToStandardOutput = true;
RedirectStandardError = true;
}
}
public bool ExitOnUserInputPrompt { get; set; } = false;
public static ProcessStreamOptions Default => new ProcessStreamOptions();
public ProcessStreamOptions(bool redirectStandardOutput = true, bool redirectStandardInput = true, bool redirectStandardError = true) {
RedirectStandardOutput = redirectStandardOutput;
RedirectStandardInput = redirectStandardInput;
RedirectStandardError = redirectStandardError;
}
// Private members
private bool redirectStandardErrorToStandardOutput = false;
}
}