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:
parent
2fb3442800
commit
7f29275851
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user