ProcessPipeline Class

Represents an ordered set of commands connected through standard streams.

public sealed class ProcessPipeline

Methods

NameDescription
ExecuteAsync(CancellationToken)Executes the pipeline and returns the result of the last command.
ExecuteBufferedAsync(CancellationToken)Executes the pipeline with buffering enabled for the last command.

ExecuteAsync(CancellationToken)

ProcessPipeline.cs

Executes the pipeline and returns the result of the last command.

public Task<ProcessResult> ExecuteAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<ProcessResult>

ExecuteBufferedAsync(CancellationToken)

ProcessPipeline.cs

Executes the pipeline with buffering enabled for the last command.

public Task<BufferedProcessResult> ExecuteBufferedAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<BufferedProcessResult>

Operators

NameDescription
operator |(ProcessPipeline, ProcessWrapper)Appends a command to the pipeline.
operator |(ProcessWrapper, ProcessPipeline)Prepends a command to the pipeline.

op_BitwiseOr overloads

operator |(ProcessPipeline, ProcessWrapper)

ProcessPipeline.cs

Appends a command to the pipeline.

public static ProcessPipeline operator |(ProcessPipeline left, ProcessWrapper right)

operator |(ProcessWrapper, ProcessPipeline)

ProcessPipeline.cs

Prepends a command to the pipeline.

public static ProcessPipeline operator |(ProcessWrapper left, ProcessPipeline right)