mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-08 16:36:15 +00:00
wip
This commit is contained in:
parent
9ead87d350
commit
b057974cd0
@ -14,6 +14,6 @@ namespace CryptoExchange.Net.Objects.Sockets
|
|||||||
{
|
{
|
||||||
public Func<WebSocketMessageType, Stream, Stream>? PreProcessCallback { get; set; }
|
public Func<WebSocketMessageType, Stream, Stream>? PreProcessCallback { get; set; }
|
||||||
public Func<IMessageAccessor, string?> GetStreamIdentifier { get; set; }
|
public Func<IMessageAccessor, string?> GetStreamIdentifier { get; set; }
|
||||||
public Func<IMessageAccessor, string?> GetTypeIdentifier { get; set; }
|
public Func<IMessageAccessor, string, string?> GetTypeIdentifier { get; set; } = (accessor, streamId) => streamId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ namespace CryptoExchange.Net.Sockets
|
|||||||
if (streamIdentity == null)
|
if (streamIdentity == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var typeIdentity = ApiClient.Pipeline.GetTypeIdentifier(accessor);
|
var typeIdentity = ApiClient.Pipeline.GetTypeIdentifier(accessor, streamIdentity);
|
||||||
var typeResult = _listenerManager.IdToType(streamIdentity, typeIdentity);
|
var typeResult = _listenerManager.IdToType(streamIdentity, typeIdentity);
|
||||||
if (typeResult == null)
|
if (typeResult == null)
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user