Class ProcessStop
What stopping an owned process did.
public sealed record ProcessStop
- Inheritance
-
objectProcessStop
Constructors
ProcessStop(StopOutcome, int?, TimeSpan, string)
What stopping an owned process did.
public ProcessStop(StopOutcome Outcome, int? ExitCode, TimeSpan Elapsed, string Request)
Parameters
OutcomeStopOutcomeWhether it quit cleanly, was killed or had already exited.
ExitCodeint?Its exit code, when known.
ElapsedTimeSpanFrom the stop request to the exit.
RequeststringHow it was asked to quit, and anything that went wrong asking.
Properties
Elapsed
From the stop request to the exit.
public TimeSpan Elapsed { get; init; }
Property Value
- TimeSpan
ExitCode
Its exit code, when known.
public int? ExitCode { get; init; }
Property Value
- int?
Outcome
Whether it quit cleanly, was killed or had already exited.
public StopOutcome Outcome { get; init; }
Property Value
Request
How it was asked to quit, and anything that went wrong asking.
public string Request { get; init; }
Property Value
- string
Methods
ToString()
For example clean after 8.2 s (interrupt, exit 0) or killed after 120.0 s (interrupt; no exit within 120 s).
public override string ToString()
Returns
- string