ReplProcessProbeOptions
Options for one ReplProcessProbe.
- Kind:
Class - Namespace: Repl.Testing
- Assembly:
Repl.Testing - Source: src/Repl.Testing/ReplProcessProbeOptions.cs
Signature
Section titled “Signature”public sealed class ReplProcessProbeOptionsInheritance
Section titled “Inheritance”Properties
Section titled “Properties”Environment
Section titled “Environment”Environment variables to set on the child, on top of the ones it inherits. A null value removes an inherited variable.
public IDictionary<string, string?> Environment { get; }Returns
Section titled “Returns”IDictionary<string, string>
Timeout
Section titled “Timeout”How long any single wait may take — for expected output, for a signal to be delivered, or for the process to exit — before it fails with a TimeoutException carrying everything captured so far. Defaults to 30 seconds.
Use InfiniteTimeSpan to wait without a deadline. Zero and negatives are refused rather than read that way: they would put every deadline in the past, failing each wait the moment it started, which is the opposite of what a caller shortening a timeout is asking for.
public TimeSpan Timeout { get; set; }Returns
Section titled “Returns”WorkingDirectory
Section titled “WorkingDirectory”The child’s working directory. null inherits the current one.
public string? WorkingDirectory { get; set; }