From 64ee50d98c5e1433a29e3f8853bd9178d7f8642d Mon Sep 17 00:00:00 2001 From: JKorf Date: Fri, 14 Jun 2024 14:06:57 +0200 Subject: [PATCH] Added SocketConnection as parameter to GetAuthenticationRequest socket api client --- CryptoExchange.Net/Clients/SocketApiClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CryptoExchange.Net/Clients/SocketApiClient.cs b/CryptoExchange.Net/Clients/SocketApiClient.cs index 7ca9391..f14682b 100644 --- a/CryptoExchange.Net/Clients/SocketApiClient.cs +++ b/CryptoExchange.Net/Clients/SocketApiClient.cs @@ -381,7 +381,7 @@ namespace CryptoExchange.Net.Clients return new CallResult(new NoApiCredentialsError()); _logger.AttemptingToAuthenticate(socket.SocketId); - var authRequest = GetAuthenticationRequest(); + var authRequest = GetAuthenticationRequest(socket); if (authRequest != null) { var result = await socket.SendAndWaitQueryAsync(authRequest).ConfigureAwait(false); @@ -406,7 +406,7 @@ namespace CryptoExchange.Net.Clients /// Should return the request which can be used to authenticate a socket connection /// /// - protected internal virtual Query? GetAuthenticationRequest() => throw new NotImplementedException(); + protected internal virtual Query? GetAuthenticationRequest(SocketConnection connection) => throw new NotImplementedException(); /// /// Adds a system subscription. Used for example to reply to ping requests