mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-11 16:32:57 +00:00
Feature/userdata tracker (#271)
Added user data tracking logic Added LastReceiveTime, SocketStatus and SubscriptionStatus properties to UpdateSubscription Added SharedTransferStatus Enum and property to SharedDeposit Added PositionMode property to SharedPosition model Added IsZero property to SharedQuantity Renamed IWebSocket LastActionTime to LastReceiveTime Updated CryptoExchangeWebsocketClient LastReceiveTime logic Updated Subscription status change event handler to run sync instead of separate task
This commit is contained in:
@@ -95,6 +95,10 @@ namespace CryptoExchange.Net.Objects
|
||||
/// </summary>
|
||||
public void Set()
|
||||
{
|
||||
if (!_autoReset && _signaled)
|
||||
// Already signaled and not resetting
|
||||
return;
|
||||
|
||||
lock (_waitersLock)
|
||||
{
|
||||
if (_autoReset)
|
||||
|
||||
@@ -109,6 +109,21 @@ namespace CryptoExchange.Net.Objects.Sockets
|
||||
/// </summary>
|
||||
public int Id => _subscription.Id;
|
||||
|
||||
/// <summary>
|
||||
/// The last timestamp anything was received from the server
|
||||
/// </summary>
|
||||
public DateTime? LastReceiveTime => _connection.LastReceiveTime;
|
||||
|
||||
/// <summary>
|
||||
/// The current websocket status
|
||||
/// </summary>
|
||||
public SocketStatus SocketStatus => _connection.Status;
|
||||
|
||||
/// <summary>
|
||||
/// The current subscription status
|
||||
/// </summary>
|
||||
public SubscriptionStatus SubscriptionStatus => _subscription.Status;
|
||||
|
||||
/// <summary>
|
||||
/// ctor
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user