Table of Contents

Method WithMaxConnectionLifetime

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

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

timeSpan TimeSpan

The max timespan that a connection can be reused after has been created for.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.