ReplSignalRun
A run started by StartRunAsync(string, CancellationToken) and still in flight. Its signal scope is registered by the time the start call returns, so a signal delivered from here on reaches it rather than falling through as inert — for as long as the run lasts. See StartRunAsync(string, CancellationToken) for what the start does and does not guarantee.
- Kind:
Class - Namespace: Repl.Testing
- Assembly:
Repl.Testing - Source: src/Repl.Testing/ReplSignalRun.cs
Signature
Section titled “Signature”public sealed class ReplSignalRunInheritance
Section titled “Inheritance”Properties
Section titled “Properties”CommandLine
Section titled “CommandLine”The command line this run was started with.
public string CommandLine { get; }Returns
Section titled “Returns”Completion
Section titled “Completion”Completes when the run finishes. Faults with TimeoutException when the run outlives RunTimeout, which is what a signal that never arrived looks like.
Bind the run to a local before awaiting this. Chaining the two — await (await harness.StartRunAsync(x)).Completion — trips VSTHRD003 in a project that treats the
Visual Studio threading analyzers as errors.
public Task<ReplSignalRunResult> Completion { get; }Returns
Section titled “Returns”Task<ReplSignalRunResult>