Method WithMaxConnectionLifetime
WithMaxConnectionLifetime(TimeSpan)
Specify the maximum connection life time. The connection that has been created for longer than specified time will not be reused but closed.
public ConfigBuilder WithMaxConnectionLifetime(TimeSpan timeSpan)
Parameters
timeSpanTimeSpanThe max timespan that a connection can be reused after has been created for.
Returns
- ConfigBuilder
A ConfigBuilder instance for further configuration options.