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