Table of Contents

Class ExecProcess

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

A running process with replayable output and separate completion and success tasks.

public sealed class ExecProcess

Properties

Completed

Completes with the result for every exit code.

public Task<ExecResult> Completed { get; }

Property Value

Task<ExecResult>

Output

The process output stream in arrival order.

public IAsyncEnumerable<ExecOutput> Output { get; }

Property Value

IAsyncEnumerable<ExecOutput>

Succeeded

Completes with the result only for exit code zero; otherwise throws DotNetDo.ExecFailedException.

public Task<ExecResult> Succeeded { get; }

Property Value

Task<ExecResult>

Methods

GetAwaiter()

Allows awaiting the command and throws when the process exits unsuccessfully.

public TaskAwaiter<ExecResult> GetAwaiter()

Returns

TaskAwaiter<ExecResult>