CaptureBufferedResultAsync(CancellationToken, Nullable, Nullable) Method

Definition

Asynchronously waits for the external process to exit or a specified timeout period elapses.

[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public Task<BufferedProcessResult> CaptureBufferedResultAsync(CancellationToken cancellationToken, long? maxStandardOutputBytes = default(long? ), long? maxStandardErrorBytes = default(long? ))

Parameters

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

maxStandardOutputBytes
Nullable<Int64>

An optional maximum number of bytes to capture from standard output before truncating. null means no cap is applied.

maxStandardErrorBytes
Nullable<Int64>

An optional maximum number of bytes to capture from standard error before truncating. null means no cap is applied.

Returns

Task<BufferedProcessResult>
A task that represents the asynchronous operation. The result contains the buffered process result when the method completes.