1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-15 02:13:01 +00:00

Made _receivedMessages protected again to allow implementations to use it

This commit is contained in:
Jkorf
2021-10-06 09:32:04 +02:00
parent cf42aa4f67
commit 1cc1f96ded
2 changed files with 16 additions and 147 deletions
@@ -44,7 +44,7 @@ namespace CryptoExchange.Net.Sockets
/// <summary>
/// Received messages time -> size
/// </summary>
internal readonly List<ReceiveItem> _receivedMessages;
protected readonly List<ReceiveItem> _receivedMessages;
/// <summary>
/// Received messages lock
/// </summary>
@@ -721,11 +721,25 @@ namespace CryptoExchange.Net.Sockets
}
}
internal struct ReceiveItem
/// <summary>
/// Received message info
/// </summary>
public struct ReceiveItem
{
/// <summary>
/// Timestamp of the received data
/// </summary>
public DateTime Timestamp { get; set; }
/// <summary>
/// Number of bytes received
/// </summary>
public int Bytes { get; set; }
/// <summary>
/// ctor
/// </summary>
/// <param name="timestamp"></param>
/// <param name="bytes"></param>
public ReceiveItem(DateTime timestamp, int bytes)
{
Timestamp = timestamp;