1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-07-23 01:45:31 +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>
public interface ISocketClient: IDisposable
{
/// <summary>
/// The exchange name
/// </summary>
string Exchange { get; }
/// <summary>
/// The options provided for this client
/// </summary>

View File

@ -519,7 +519,7 @@ namespace CryptoExchange.Net.Sockets
multiPartMessage = true;
_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)
multipartStream = new MemoryStream();
multipartStream.Write(buffer.Array, buffer.Offset, receiveResult.Count);