Edit

Share via


InvocationConfiguration Class

Definition

public ref class InvocationConfiguration
public class InvocationConfiguration
type InvocationConfiguration = class
Public Class InvocationConfiguration
Inheritance
InvocationConfiguration

Constructors

InvocationConfiguration()

Properties

EnableDefaultExceptionHandler

Enables a default exception handler to catch any unhandled exceptions thrown during invocation. Enabled by default.

Error

The standard error. Used for printing error information like parse errors. By default it's set to Error. For testing purposes, it can be set to a new instance of StringWriter.

Output

The standard output. Used by Help and other facilities that write non-error information. By default it's set to Out. For testing purposes, it can be set to a new instance of StringWriter. If you want to disable the output, please set it to Null.

ProcessTerminationTimeout

Enables signaling and handling of process termination (Ctrl+C, SIGINT, SIGTERM) via a CancellationToken that can be passed to a CommandLineAction during invocation. If not provided, a default timeout of 2 seconds is enforced.

Applies to