mirror of
				https://github.com/JKorf/CryptoExchange.Net
				synced 2025-10-31 02:17:45 +00:00 
			
		
		
		
	Added SocketConnection as parameter to GetAuthenticationRequest socket api client
This commit is contained in:
		
							parent
							
								
									6a105c6f8f
								
							
						
					
					
						commit
						64ee50d98c
					
				| @ -381,7 +381,7 @@ namespace CryptoExchange.Net.Clients | |||||||
|                 return new CallResult(new NoApiCredentialsError()); |                 return new CallResult(new NoApiCredentialsError()); | ||||||
| 
 | 
 | ||||||
|             _logger.AttemptingToAuthenticate(socket.SocketId); |             _logger.AttemptingToAuthenticate(socket.SocketId); | ||||||
|             var authRequest = GetAuthenticationRequest(); |             var authRequest = GetAuthenticationRequest(socket); | ||||||
|             if (authRequest != null) |             if (authRequest != null) | ||||||
|             { |             { | ||||||
|                 var result = await socket.SendAndWaitQueryAsync(authRequest).ConfigureAwait(false); |                 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 |         /// Should return the request which can be used to authenticate a socket connection | ||||||
|         /// </summary> |         /// </summary> | ||||||
|         /// <returns></returns> |         /// <returns></returns> | ||||||
|         protected internal virtual Query? GetAuthenticationRequest() => throw new NotImplementedException(); |         protected internal virtual Query? GetAuthenticationRequest(SocketConnection connection) => throw new NotImplementedException(); | ||||||
| 
 | 
 | ||||||
|         /// <summary> |         /// <summary> | ||||||
|         /// Adds a system subscription. Used for example to reply to ping requests |         /// Adds a system subscription. Used for example to reply to ping requests | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user