private void HandleAuthenticationEvent(BitfinexAuthenticationResponse response) { if (response.Status == AuthenticationSucces) { // authenticated = true; Log.Write(LogVerbosity.Info, $"Socket authentication successful, authentication id : {response.AuthenticationId}"); } else { Log.Write(LogVerbosity.Warning, $"Socket authentication failed. Status: {response.Status}, Error code: {response.ErrorCode}, Error message: {response.ErrorMessage}"); } }
private void HandleAuthenticationEvent(BitfinexAuthenticationResponse response) { if (response.Status == AuthenticationSucces) { Authenticated = true; log?.Debug($"Socket authentication successful, authentication id : {response.AuthenticationId}"); } else { log?.Warn($"Socket authentication failed. Status: {response.Status}, Error code: {response.ErrorCode}, Error message: {response.ErrorMessage}"); } }
private void ProcessAuthenticationResponse(BitfinexAuthenticationResponse response) { if (response.Status == "OK") { authenticated = true; log.Write(LogVerbosity.Info, "Authentication successful"); } else { authenticated = false; log.Write(LogVerbosity.Warning, "Authentication failed: " + response.ErrorMessage); } }