Table of Contents

Method WithConnectionAcquisitionTimeout

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithConnectionAcquisitionTimeout(TimeSpan)

Sets the maximum connection acquisition timeout for waiting for a connection to become available in idle connection pool when MaxConnectionPoolSize is reached.

Note that if a client certificate is provided using WithClientCertificateProvider(IClientCertificateProvider), the the connection acquisition timeout will be running while the client certificate is being fetched, so if the client certificate fetching is slow, it might be necessary to increase the timeout.
public ConfigBuilder WithConnectionAcquisitionTimeout(TimeSpan timeSpan)

Parameters

timeSpan TimeSpan

The connection acquisition timeout.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.