mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-16 02:43:00 +00:00
Added autoreconnect option
This commit is contained in:
@@ -78,6 +78,11 @@ namespace CryptoExchange.Net.Objects
|
||||
|
||||
public class SocketClientOptions: ExchangeOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether or not the socket should automatically reconnect when losing connection
|
||||
/// </summary>
|
||||
public bool AutoReconnect { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Time to wait between reconnect attempts
|
||||
/// </summary>
|
||||
@@ -91,6 +96,7 @@ namespace CryptoExchange.Net.Objects
|
||||
LogVerbosity = LogVerbosity,
|
||||
Proxy = Proxy,
|
||||
LogWriters = LogWriters,
|
||||
AutoReconnect = AutoReconnect,
|
||||
ReconnectInterval = ReconnectInterval
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user