Class Connection.ConnectionOptions
Inheritance
object
Connection.ConnectionOptions
Assembly: Xrpl.dll
Syntax
public class Connection.ConnectionOptions
Properties
|
Edit this page
View Source
ConnectionAcquisitionTimeout
Maximum time to wait for connection when using WaitForConnection request policy.
This is the total time allowed for multiple connection attempts, including retry delays.
Must be >= ConnectionAttemptTimeout to allow at least one full connection attempt.
Default: 30 seconds.
Declaration
public TimeSpan ConnectionAcquisitionTimeout { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
|
Edit this page
View Source
ConnectionAttemptTimeout
Timeout for a single WebSocket connection attempt.
If the connection cannot be established within this time, it will fail and trigger reconnection logic.
Should be shorter than ConnectionAcquisitionTimeout to allow multiple retry attempts.
Default: 30 seconds.
Declaration
public TimeSpan ConnectionAttemptTimeout { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
|
Edit this page
View Source
MaxReconnectAttempts
Gets or sets the maximum number of times the system will attempt to reconnect after a disconnection.
Declaration
public int MaxReconnectAttempts { get; set; }
Property Value
|
Edit this page
View Source
ReconnectBaseDelay
Gets or sets the base delay interval used between automatic reconnection attempts.
Declaration
public TimeSpan ReconnectBaseDelay { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
|
Edit this page
View Source
ReconnectMaxDelay
Gets or sets the maximum delay between automatic reconnection attempts after a disconnection.
Declaration
public TimeSpan ReconnectMaxDelay { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
|
Edit this page
View Source
RequestPolicy
Gets or sets the policy that determines how failed requests are handled.
Declaration
public RequestFailurePolicy RequestPolicy { get; set; }
Property Value
|
Edit this page
View Source
RequestTimeout
Timeout for individual API requests after connection is established.
This controls how long to wait for a response to a single request (e.g., account_info, submit).
Default: 40 seconds.
Declaration
public TimeSpan RequestTimeout { get; set; }
Property Value
| Type |
Description |
| TimeSpan |
|
|
Edit this page
View Source
StopAfterMaxAttempts
Gets or sets a value indicating whether the operation should stop after reaching the maximum number of
attempts.
Declaration
public bool StopAfterMaxAttempts { get; set; }
Property Value
|
Edit this page
View Source
UseCheckHealth
Gets or sets a value indicating whether to enable periodic background health monitoring of the WebSocket connection.
When enabled, the connection state is checked every 20 seconds. If the WebSocket is detected as Closed or Aborted,
or if no data has been received for more than 60 seconds, an automatic reconnection is triggered.
This check does not send any network requests — it only inspects the local connection state.
Automatically enabled when UseCustomPing is set to true.
Default: false.
Declaration
public bool UseCheckHealth { get; set; }
Property Value
|
Edit this page
View Source
UseCustomPing
Gets or sets a value indicating whether to use a custom ping
implementation instead of the default behavior.
Declaration
public bool UseCustomPing { get; set; }
Property Value
|
Edit this page
View Source
authorization
Declaration
public string authorization { get; set; }
Property Value
|
Edit this page
View Source
certificate
Declaration
public string certificate { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public Dictionary<string, object> headers { get; set; }
Property Value
| Type |
Description |
| Dictionary<string, object> |
|
|
Edit this page
View Source
key
Declaration
public string key { get; set; }
Property Value
|
Edit this page
View Source
passphrase
Declaration
public string passphrase { get; set; }
Property Value
|
Edit this page
View Source
proxy
Declaration
public string proxy { get; set; }
Property Value
|
Edit this page
View Source
proxyAuthorization
Declaration
public string proxyAuthorization { get; set; }
Property Value
|
Edit this page
View Source
trace
Declaration
public Connection.Trace trace { get; set; }
Property Value
|
Edit this page
View Source
trustedCertificates
Declaration
public string trustedCertificates { get; set; }
Property Value