From 9ff417bba87e89095a39776f685af4fc549830ee Mon Sep 17 00:00:00 2001 From: Jkorf Date: Wed, 6 Nov 2024 13:56:33 +0100 Subject: [PATCH] Changed SocketApiClient GetAuthenticationRequest to GetAuthenticationRequestAsync to allow for requesting token --- 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 ba9d763..d27ee3d 100644 --- a/CryptoExchange.Net/Clients/SocketApiClient.cs +++ b/CryptoExchange.Net/Clients/SocketApiClient.cs @@ -408,7 +408,7 @@ namespace CryptoExchange.Net.Clients return new CallResult(new NoApiCredentialsError()); _logger.AttemptingToAuthenticate(socket.SocketId); - var authRequest = GetAuthenticationRequest(socket); + var authRequest = await GetAuthenticationRequestAsync(socket).ConfigureAwait(false); if (authRequest != null) { var result = await socket.SendAndWaitQueryAsync(authRequest).ConfigureAwait(false); @@ -433,7 +433,7 @@ namespace CryptoExchange.Net.Clients /// Should return the request which can be used to authenticate a socket connection /// /// - protected internal virtual Query? GetAuthenticationRequest(SocketConnection connection) => throw new NotImplementedException(); + protected internal virtual Task GetAuthenticationRequestAsync(SocketConnection connection) => throw new NotImplementedException(); /// /// Adds a system subscription. Used for example to reply to ping requests