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
|
Full Usage:
DelegatingProcessRunner(inner)
Parameters:
IProcessRunner
Returns: DelegatingProcessRunner
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.CaptureBytesAsync
Parameters:
Command
cancellationToken : CancellationToken
Returns: Task<Result<ProcessResult<byte[]>, ProcessError>>
Modifiers: abstract |
Run to completion, capturing stdout as raw bytes. Override to intercept; the default forwards.
|
Full Usage:
this.CaptureStringAsync
Parameters:
Command
cancellationToken : CancellationToken
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.
|
|
The wrapped runner.
|
Full Usage:
this.SpawnAsync
Parameters:
Command
cancellationToken : CancellationToken
Returns: Task<Result<RunningProcess, ProcessError>>
Modifiers: abstract |
Start the command and return a live handle. Override to intercept; the default forwards.
|
ProcessKit API Reference