WithConfiguration(ProcessConfiguration) Method

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

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

public InvocationContext WithConfiguration(ProcessConfiguration configuration)

Parameters

configuration
ProcessConfiguration

The new process configuration to use.

Returns

InvocationContext
A new invocation context with the updated configuration.