Class ExecProcess
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
A running process with replayable output and separate completion and success tasks.
public sealed class ExecProcessProperties
Completed
Completes with the result for every exit code.
public Task<ExecResult> Completed { get; }Property Value
Output
The process output stream in arrival order.
public IAsyncEnumerable<ExecOutput> Output { get; }Property Value
Succeeded
Completes with the result only for exit code zero; otherwise throws DotNetDo.ExecFailedException.
public Task<ExecResult> Succeeded { get; }Property Value
Methods
GetAwaiter()
Allows awaiting the command and throws when the process exits unsuccessfully.
public TaskAwaiter<ExecResult> GetAwaiter()