1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 19:33:07 +00:00

Added some code comments

This commit is contained in:
Jkorf
2026-02-16 09:36:44 +01:00
parent 5e083811df
commit b94085a27a
4 changed files with 21 additions and 2 deletions
@@ -1103,6 +1103,12 @@ namespace CryptoExchange.Net.Sockets.Default
return CallResult.SuccessResult;
}
/// <summary>
/// Try to subscribe a new subscription by sending the subscribe query and wait for the result as needed
/// </summary>
/// <param name="subscription">The subscription</param>
/// <param name="newSubscription">Whether this is a new subscription, or an existing subscription (resubscribing on reconnected socket)</param>
/// <param name="subCancelToken">Cancellation token</param>
protected internal async Task<CallResult> TrySubscribeAsync(Subscription subscription, bool newSubscription, CancellationToken subCancelToken)
{
subscription.ConnectionInvocations = 0;