Creates a new InvocationContext with the specified exit configuration while preserving all other context state.
public InvocationContext WithExitConfiguration(ProcessExitConfiguration exitConfiguration)
The new process exit configuration to use.