WithExitConfiguration(ProcessExitConfiguration) Method

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Creates a new InvocationContext with the specified exit configuration while preserving all other context state.

public InvocationContext WithExitConfiguration(ProcessExitConfiguration exitConfiguration)

Parameters

exitConfiguration
ProcessExitConfiguration

The new process exit configuration to use.

Returns

InvocationContext
A new invocation context with the updated exit configuration.