1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-07-24 18:35:38 +00:00

Added Exchange property to ISocketClient interface

This commit is contained in:
JKorf 2024-03-16 14:47:12 +01:00
parent 2fb3442800
commit 7f29275851
2 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ namespace CryptoExchange.Net.Interfaces
/// </summary> /// </summary>
public interface ISocketClient: IDisposable public interface ISocketClient: IDisposable
{ {
/// <summary>
/// The exchange name
/// </summary>
string Exchange { get; }
/// <summary> /// <summary>
/// The options provided for this client /// The options provided for this client
/// </summary> /// </summary>

View File

@ -519,7 +519,7 @@ namespace CryptoExchange.Net.Sockets
multiPartMessage = true; multiPartMessage = true;
_logger.Log(LogLevel.Trace, $"[Sckt {Id}] received {receiveResult.Count} bytes in partial message"); _logger.Log(LogLevel.Trace, $"[Sckt {Id}] received {receiveResult.Count} bytes in partial message");
// Add the buffer to the multipart buffers list, create new buffer for next message part // Write the data to a memory stream to be reassembled later
if (multipartStream == null) if (multipartStream == null)
multipartStream = new MemoryStream(); multipartStream = new MemoryStream();
multipartStream.Write(buffer.Array, buffer.Offset, receiveResult.Count); multipartStream.Write(buffer.Array, buffer.Offset, receiveResult.Count);