Creates a new InvocationContext with the specified configuration while preserving all other context state.
public InvocationContext WithConfiguration(ProcessConfiguration configuration)
The new process configuration to use.