ProcessTimeoutPolicy(TimeSpan, Boolean, ProcessExitBehaviour) Constructor

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Instantiates the ProcessTimeoutPolicy with default values unless specified parameters are provided.

public ProcessTimeoutPolicy(TimeSpan timeoutThreshold, bool enabled, ProcessExitBehaviour exitBehaviour = ProcessExitBehaviour.GracefulExit)

Parameters

timeoutThreshold
TimeSpan

The timespan to wait for the Process timeout before cancelling the Process.

enabled
Boolean
exitBehaviour
ProcessExitBehaviour