ProcessExitConfiguration(ProcessTimeoutPolicy, ProcessExitBehaviour, ProcessExceptionBehaviour, Boolean) Constructor

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Initialises a new instance of the ProcessExitConfiguration class with the specified timeout policy and result validation.

public ProcessExitConfiguration(ProcessTimeoutPolicy timeoutPolicy, ProcessExitBehaviour requestedCancellationExitBehaviour = ProcessExitBehaviour.GracefulExit, ProcessExceptionBehaviour exceptionBehaviour = ProcessExceptionBehaviour.AllowExceptionsIfUnexpected, bool cancellationThrowsException = false)

Parameters

timeoutPolicy
ProcessTimeoutPolicy

The timeout policy to apply to the process.

requestedCancellationExitBehaviour
ProcessExitBehaviour

The exit behaviour to apply when the process is cancelled.

exceptionBehaviour
ProcessExceptionBehaviour

Determines how exceptions raised during process execution are handled.

cancellationThrowsException
Boolean

When true, a cancellation request during process execution throws the underlying instead of returning a result with Canceled set to true.