From 1cc1f96ded62413afe4c6ec053dac4df0da9787f Mon Sep 17 00:00:00 2001 From: Jkorf Date: Wed, 6 Oct 2021 09:32:04 +0200 Subject: [PATCH] Made _receivedMessages protected again to allow implementations to use it --- CryptoExchange.Net/CryptoExchange.Net.xml | 145 ------------------ .../Sockets/CryptoExchangeWebSocketClient.cs | 18 ++- 2 files changed, 16 insertions(+), 147 deletions(-) diff --git a/CryptoExchange.Net/CryptoExchange.Net.xml b/CryptoExchange.Net/CryptoExchange.Net.xml index 55d209b..b595b3a 100644 --- a/CryptoExchange.Net/CryptoExchange.Net.xml +++ b/CryptoExchange.Net/CryptoExchange.Net.xml @@ -4019,148 +4019,3 @@ -System.Diagnostics.CodeAnalysis.AllowNullAttribute"> - - Specifies that is allowed as an input even if the - corresponding type disallows it. - - - - - Initializes a new instance of the class. - - - - - Specifies that is disallowed as an input even if the - corresponding type allows it. - - - - - Initializes a new instance of the class. - - - - - Specifies that a method that will never return under any circumstance. - - - - - Initializes a new instance of the class. - - - - - Specifies that the method will not return if the associated - parameter is passed the specified value. - - - - - Gets the condition parameter value. - Code after the method is considered unreachable by diagnostics if the argument - to the associated parameter matches this value. - - - - - Initializes a new instance of the - class with the specified parameter value. - - - The condition parameter value. - Code after the method is considered unreachable by diagnostics if the argument - to the associated parameter matches this value. - - - - - Specifies that an output may be even if the - corresponding type disallows it. - - - - - Initializes a new instance of the class. - - - - - Specifies that when a method returns , - the parameter may be even if the corresponding type disallows it. - - - - - Gets the return value condition. - If the method returns this value, the associated parameter may be . - - - - - Initializes the attribute with the specified return value condition. - - - The return value condition. - If the method returns this value, the associated parameter may be . - - - - - Specifies that an output is not even if the - corresponding type allows it. - - - - - Initializes a new instance of the class. - - - - - Specifies that the output will be non- if the - named parameter is non-. - - - - - Gets the associated parameter name. - The output will be non- if the argument to the - parameter specified is non-. - - - - - Initializes the attribute with the associated parameter name. - - - The associated parameter name. - The output will be non- if the argument to the - parameter specified is non-. - - - - - Specifies that when a method returns , - the parameter will not be even if the corresponding type allows it. - - - - - Gets the return value condition. - If the method returns this value, the associated parameter will not be . - - - - - Initializes the attribute with the specified return value condition. - - - The return value condition. - If the method returns this value, the associated parameter will not be . - - - - diff --git a/CryptoExchange.Net/Sockets/CryptoExchangeWebSocketClient.cs b/CryptoExchange.Net/Sockets/CryptoExchangeWebSocketClient.cs index c9e9515..e1468e2 100644 --- a/CryptoExchange.Net/Sockets/CryptoExchangeWebSocketClient.cs +++ b/CryptoExchange.Net/Sockets/CryptoExchangeWebSocketClient.cs @@ -44,7 +44,7 @@ namespace CryptoExchange.Net.Sockets /// /// Received messages time -> size /// - internal readonly List _receivedMessages; + protected readonly List _receivedMessages; /// /// Received messages lock /// @@ -721,11 +721,25 @@ namespace CryptoExchange.Net.Sockets } } - internal struct ReceiveItem + /// + /// Received message info + /// + public struct ReceiveItem { + /// + /// Timestamp of the received data + /// public DateTime Timestamp { get; set; } + /// + /// Number of bytes received + /// public int Bytes { get; set; } + /// + /// ctor + /// + /// + /// public ReceiveItem(DateTime timestamp, int bytes) { Timestamp = timestamp;