BuildMaster SDK Reference
Version:

DelayUntilExitAsync(System.Diagnostics.Process process, int? timeout, System.Threading.CancellationToken cancellationToken) Method

Delays until the process has exited or the specified timeout has been reached.

Syntax

public static System.Threading.Tasks.Task DelayUntilExitAsync(System.Diagnostics.Process process, int? timeout, System.Threading.CancellationToken cancellationToken)

Parameters

process
Type: System.Diagnostics.Process

The process.

timeout
Type: int?

The timeout period in milliseconds.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

Exceptions

System.ArgumentNullException

process is null (Nothing in Visual Basic).

System.ArgumentOutOfRangeException

timeout is less than zero.