1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Added properties dictionary to socket connection

This commit is contained in:
Jkorf 2023-07-05 17:10:43 +02:00
parent 7ecf37064b
commit c3316a51e7

View File

@ -107,6 +107,11 @@ namespace CryptoExchange.Net.Sockets
/// Tag for identificaion /// Tag for identificaion
/// </summary> /// </summary>
public string Tag { get; set; } public string Tag { get; set; }
/// <summary>
/// Additional properties for this connection
/// </summary>
public Dictionary<string, object> Properties { get; set; }
/// <summary> /// <summary>
/// If activity is paused /// If activity is paused
@ -170,6 +175,7 @@ namespace CryptoExchange.Net.Sockets
_logger = logger; _logger = logger;
ApiClient = apiClient; ApiClient = apiClient;
Tag = tag; Tag = tag;
Properties = new Dictionary<string, object>();
_pendingRequests = new List<PendingRequest>(); _pendingRequests = new List<PendingRequest>();
_subscriptions = new List<SocketSubscription>(); _subscriptions = new List<SocketSubscription>();