Table of Contents

Method WithResolver

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithResolver(IServerAddressResolver)

Gets or internal sets a custom server address resolver used by the routing driver to resolve the initial address used to create the driver. Such resolution happens: 1) during the very first rediscovery when driver is created. 2) when all the known routers from the current routing table have failed and driver needs to fallback to the initial address.

public ConfigBuilder WithResolver(IServerAddressResolver resolver)

Parameters

resolver IServerAddressResolver

The resolver, default to a resolver that simply pass the initial server address as it is.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.