Class ReconnectionParameters
Automatic reconnection parameters for streaming client with auto-reconnection support.
Inheritance
System.Object
ReconnectionParameters
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets.Extensions
Assembly: Alpaca.Markets.Extensions.dll
Syntax
public sealed class ReconnectionParameters
Properties
| Improve this Doc View SourceDefault
Gets the default reconnection parameters - 5 attempts with delay from 1 to 5 seconds.
Declaration
public static ReconnectionParameters Default { get; }
Property Value
Type | Description |
---|---|
ReconnectionParameters |
MaxReconnectionAttempts
Gets or sets the maximum number of reconnection attempts in case of a connection closing.
Declaration
public Int32 MaxReconnectionAttempts { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MaxReconnectionDelay
Gets or sets the maximum delay between repeated reconnection attempts.
Declaration
public TimeSpan MaxReconnectionDelay { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
MinReconnectionDelay
Gets or sets the minimum delay between different reconnection attempts.
Declaration
public TimeSpan MinReconnectionDelay { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
RetryWebSocketErrorCodes
Gets set of web socket error codes which when received should initiate a retry of the affected request.
Declaration
public ISet<WebSocketError> RetryWebSocketErrorCodes { get; }
Property Value
Type | Description |
---|---|
ISet<System.Net.WebSockets.WebSocketError> |