Logo ProcessKit API Reference

DelegatingProcessRunner Type

A pass-through `IProcessRunner` base for decorators: it forwards all three verbs to `inner`, so a wrapper — logging, retry, metrics, fault injection, fixed-latency, recording — overrides only the verb(s) it changes and inherits the rest. Each verb is an overridable member; the interface dispatches to it.

Constructors

Constructor Description

DelegatingProcessRunner(inner)

Full Usage: DelegatingProcessRunner(inner)

Parameters:
Returns: DelegatingProcessRunner

Instance members

Instance member Description

this.CaptureBytesAsync

Full Usage: this.CaptureBytesAsync

Parameters:
Returns: Task<Result<ProcessResult<byte[]>, ProcessError>>
Modifiers: abstract

Run to completion, capturing stdout as raw bytes. Override to intercept; the default forwards.

command : Command
cancellationToken : CancellationToken
Returns: Task<Result<ProcessResult<byte[]>, ProcessError>>

this.CaptureStringAsync

Full Usage: this.CaptureStringAsync

Parameters:
Returns: Task<Result<ProcessResult<string>, ProcessError>>
Modifiers: abstract

Run to completion, capturing stdout as decoded text. Override to intercept; the default forwards to the wrapped runner.

command : Command
cancellationToken : CancellationToken
Returns: Task<Result<ProcessResult<string>, ProcessError>>

this.Inner

Full Usage: this.Inner

Returns: IProcessRunner

The wrapped runner.

Returns: IProcessRunner

this.SpawnAsync

Full Usage: this.SpawnAsync

Parameters:
Returns: Task<Result<RunningProcess, ProcessError>>
Modifiers: abstract

Start the command and return a live handle. Override to intercept; the default forwards.

command : Command
cancellationToken : CancellationToken
Returns: Task<Result<RunningProcess, ProcessError>>

Type something to start searching.