Method WithAutoRestart
WithAutoRestart(int, TimeSpan?)
Enables automatic restart on unexpected process termination (stdio transport only).
public McpClientBuilder WithAutoRestart(int maxAttempts = 3, TimeSpan? restartDelay = null)
Parameters
maxAttemptsintMaximum restart attempts (0 for unlimited).
restartDelayTimeSpan?Delay between restart attempts.
Returns
- McpClientBuilder
This builder instance for method chaining.