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