mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-02-16 14:13:46 +00:00
Fixed HandleSubQueryResponse not getting called
This commit is contained in:
parent
76772e91ba
commit
21c8133292
@ -1114,6 +1114,7 @@ namespace CryptoExchange.Net.Sockets.Default
|
||||
return;
|
||||
|
||||
await SendAndWaitQueryAsync(unsubscribeRequest).ConfigureAwait(false);
|
||||
subscription.HandleUnsubQueryResponse(this, unsubscribeRequest.Response);
|
||||
_logger.SubscriptionUnsubscribed(SocketId, subscription.Id);
|
||||
}
|
||||
|
||||
@ -1127,7 +1128,7 @@ namespace CryptoExchange.Net.Sockets.Default
|
||||
return CallResult.SuccessResult;
|
||||
|
||||
var result = await SendAndWaitQueryAsync(subQuery).ConfigureAwait(false);
|
||||
subscription.HandleSubQueryResponse(this, subQuery.Response!);
|
||||
subscription.HandleSubQueryResponse(this, subQuery.Response);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@ -149,8 +149,7 @@ namespace CryptoExchange.Net.Sockets.Default
|
||||
/// <summary>
|
||||
/// Handle an unsubscription query response
|
||||
/// </summary>
|
||||
#warning ?
|
||||
public virtual void HandleUnsubQueryResponse(SocketConnection connection, object message) { }
|
||||
public virtual void HandleUnsubQueryResponse(SocketConnection connection, object? message) { }
|
||||
|
||||
/// <summary>
|
||||
/// Create a new unsubscription query
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user