Skip to content

ReplProcessProbeOptions

Options for one ReplProcessProbe.

public sealed class ReplProcessProbeOptions

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; }

IDictionary<string, string>

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; }

TimeSpan

The child’s working directory. null inherits the current one.

public string? WorkingDirectory { get; set; }

string