Method Driver
Driver(string)
Returns a driver for a Neo4j instance with default configuration settings and disabled authentication.
public static IDriver Driver(string uri)
Parameters
uri
stringThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(Uri)
Returns a driver for a Neo4j instance with default configuration settings and disabled authentication.
public static IDriver Driver(Uri uri)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(string, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration and disabled authentication.
public static IDriver Driver(string uri, Action<ConfigBuilder> action)
Parameters
uri
stringThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.action
Action<ConfigBuilder>Specifies how to build a driver configuration Config, using ConfigBuilder. If set to
null
, then no modification will be carried out and the default driver configurations Config will be used when creating the driver.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(Uri, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration and disabled authentication.
public static IDriver Driver(Uri uri, Action<ConfigBuilder> action)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.action
Action<ConfigBuilder>Specifies how to build a driver configuration Config, using ConfigBuilder. If set to
null
, then no modification will be carried out and the default driver configurations Config will be used when creating the driver.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(string, IAuthToken)
Returns a driver for a Neo4j instance with default configuration settings.
public static IDriver Driver(string uri, IAuthToken authToken)
Parameters
uri
stringThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authToken
IAuthTokenAuthentication to use, AuthTokens.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(Uri, IAuthToken)
Returns a driver for a Neo4j instance with default configuration settings.
public static IDriver Driver(Uri uri, IAuthToken authToken)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authToken
IAuthTokenAuthentication to use, AuthTokens.
Returns
Remarks
Ensure you provide the protocol for the uri
.
Exceptions
- ArgumentNullException
Thrown if
uri
isnull
.
Driver(Uri, IAuthTokenManager)
Returns a driver for a Neo4j instance with default configuration settings.
public static IDriver Driver(Uri uri, IAuthTokenManager authTokenManager)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authTokenManager
IAuthTokenManagerThe IAuthTokenManager to use for authentication.
Returns
Driver(string, IAuthToken, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration.
public static IDriver Driver(string uri, IAuthToken authToken, Action<ConfigBuilder> action)
Parameters
uri
stringThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authToken
IAuthTokenAuthentication to use, AuthTokens.
action
Action<ConfigBuilder>Specifies how to build a driver configuration Config, using ConfigBuilder. If set to
null
, then no modification will be carried out and the default driver configurations Config will be used when creating the driver.
Returns
- IDriver
A new driver to the database instance specified by the
uri
.
Driver(string, IAuthTokenManager, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration.
public static IDriver Driver(string uri, IAuthTokenManager authTokenManager, Action<ConfigBuilder> action)
Parameters
uri
stringThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authTokenManager
IAuthTokenManagerThe IAuthTokenManager to use for authentication.
action
Action<ConfigBuilder>Specifies how to build a driver configuration Config, using ConfigBuilder. If set to
null
, then no modification will be carried out and the default driver configurations Config will be used when creating the driver.
Returns
Driver(Uri, IAuthToken, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration.
public static IDriver Driver(Uri uri, IAuthToken authToken, Action<ConfigBuilder> action)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
neo4j://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used.authToken
IAuthTokenAuthentication to use, AuthTokens.
action
Action<ConfigBuilder>Defines how to build a driver configuration Config using ConfigBuilder . If set to
null
, then no modification will be carried out on the build. As a result, a default config with default settings will be used Config when creating the new driver.
Returns
- IDriver
A new driver to the database instance specified by the
uri
.
Driver(Uri, IAuthTokenManager, Action<ConfigBuilder>)
Returns a driver for a Neo4j instance with custom configuration.
public static IDriver Driver(Uri uri, IAuthTokenManager authTokenManager, Action<ConfigBuilder> action)
Parameters
uri
UriThe URI to the Neo4j instance. Should be in the form
protocol://<server location>:<port>
. Ifport
is not supplied the default of7687
will be used. The supported protocols in URI could either bebolt
orneo4j
. The protocolbolt
should be used when creating a driver connecting to the Neo4j instance directly. The protocolneo4j
should be used when creating a driver with built-in routing.authTokenManager
IAuthTokenManagerThe IAuthTokenManager to use for authentication.
action
Action<ConfigBuilder>Specifies how to build a driver configuration Config, using ConfigBuilder. If set to
null
, then no modification will be carried out and the default driver configurations Config will be used when creating the driver.