1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 10:22:57 +00:00

Added exception event on socket subscription

This commit is contained in:
Jan Korf
2019-02-01 17:01:02 +01:00
parent 7020b5cb14
commit d3cd128ca8
3 changed files with 16 additions and 0 deletions
@@ -25,6 +25,15 @@ namespace CryptoExchange.Net.Sockets
remove => subscription.ConnectionRestored -= value;
}
/// <summary>
/// Event when an exception happened
/// </summary>
public event Action<Exception> Exception
{
add => subscription.Exception += value;
remove => subscription.Exception -= value;
}
/// <summary>
/// The id of the socket
/// </summary>