1
0
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:
Jan Korf
2019-03-18 10:41:03 +01:00
parent 4536d5f6c6
commit 4cae8670a3
2 changed files with 16 additions and 1 deletions
@@ -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
};