Provides a way to generate a Config instance fluently.
public sealed class ConfigBuilder
ConfigBuilder
Sets the rule for which Certificate Authority(CA) certificates to use when building trust with a server certificate.
Sets the rule for which Certificate Authority(CA) certificates to use when building trust with a server certificate.
Sets the IClientCertificateProvider to use if mTLS authentication is required. The provider will be called to provide the client certificate when establishing a new connection.
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.Specify the connection idle timeout. The connection that has been idled in pool for longer than specified timeout will not be reused but closed.
Sets the connection liveness timeout. Pooled connections that have been idle in the pool for longer than this timeout will be tested before they are used again, to ensure they are still live. If this option is set too low, an additional network call will be incurred when acquiring a connection, which causes a performance hit.
If this is set high, you may receive sessions that are backed by no longer live connections, which will lead to exceptions in your application. Assuming the database is running, these exceptions will go away if you retry acquiring sessions. Hence, this parameter tunes a balance between the likelihood of your application seeing connection problems, and performance. You normally should not need to tune this parameter. No connection liveness check is done by default. Value 0 means connections will always be tested for validity. Values less than 0 are not allowed.Specify socket connection timeout. A TimeSpan that represents the number of milliseconds to wait, or InfiniteInterval to wait indefinitely.
Specify the default read buffer size which the driver allocates for its internal buffers.
Specify the default write buffer size which the driver allocates for its internal buffers.
Sets the Config to use TLS if level
is Encrypted
.
Sets the default fetch size. Since Bolt v4 (Neo4j 4.0+), the query running result (records) are pulled from server in batches. This fetch size defines how many records to pull in each batch. Use Infinite to disable batching and always pull all records in one batch instead.
Setting this option to true will enable ipv6 on socket connections.
Specify the maximum connection life time. The connection that has been created for longer than specified time will not be reused but closed.
Sets the size of the connection pool.
Sets the size of the idle connection pool.
Specify the size when internal read buffers reach, will be released for garbage collection.
Specify the maximum time transactions are allowed to retry via transaction functions. These methods will retry the given unit of work on SessionExpiredException, TransientException and ServiceUnavailableException with exponential backoff using initial delay of 1 second. Default value is 30 seconds.
Specify the size when internal write buffers reach, will be released for garbage collection.
Sets the MessageReaderConfig config to use in the driver.
Override configuration for which INotifications should be emitted for the lifetime of the driver.
Unspecified configuration will be provided by configuration in the server.
Disabling categories or severities allows the server to skip analysis for those, which can speed up query execution.
Disable all notifications for the lifetime of the driver.
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.
Enable socket to send keep alive pings on TCP level to prevent pooled socket connections from getting killed after leaving client idle for a long time. The interval of keep alive pings are internal set via your OS system.
Disables the driver sending any telemetry data.
The telemetry collected covers high level usage of the driver and does not include any queries or parameters.
Current collected metrics:
Enables TLS13 when establishing a connection. The default is Tls12.
Sets a custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.
Sets the custom NegotiateTlsDelegate to call when establishing a TLS connection.
Sets the type of custom ITlsNegotiator to use when establishing a TLS connection. Note that this overrides the default TLS negotiator, which handles certificate-based trust, so if you use this method you should implement certificate validation yourself.
Sets the TrustManager to use while establishing trust via TLS. The manager
will not take effect if EncryptionLevel decides to use no TLS encryption on the connections.
Sets the userAgent. Used to get and set the User Agent string. If not used the default will be "neo4j-dotnet/x.y" where x is the major version and y is the minor version.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4