StartAsync(ProcessConfiguration, CancellationToken) Method

Definition

Starts the external process asynchronously using the specified configuration, feeding that configuration's standard input to the child.

[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
[UnsupportedOSPlatform("browser")]
public Task StartAsync(ProcessConfiguration configuration, CancellationToken cancellationToken)

Parameters

configuration
ProcessConfiguration

The configuration settings for starting the external process.

cancellationToken
CancellationToken

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

Returns

Task
A task that completes once the process has been launched and the supplied configuration's standard input has been piped to the child. The method does not wait for the process to exit and produces no process result; obtain the result separately via WaitForExitOrTimeoutAsync(CancellationToken) or CaptureBufferedResultAsync(CancellationToken, Nullable<Int64>, Nullable<Int64>).

Remarks

Configuration is not mutated; the resolved file path surfaces on the result returned later via WaitForExitOrTimeoutAsync(CancellationToken) as ExecutedFilePath.