mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2025-06-07 16:06:15 +00:00
Set ApiCredentials in the client specific options to prevent unknown client credentials when using SetApiCredentials method on client
This commit is contained in:
parent
7a58902ab6
commit
1842f4fda0
@ -88,6 +88,7 @@ namespace CryptoExchange.Net.Clients
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public void SetApiCredentials<T>(T credentials) where T : ApiCredentials
|
public void SetApiCredentials<T>(T credentials) where T : ApiCredentials
|
||||||
{
|
{
|
||||||
|
ApiOptions.ApiCredentials = credentials;
|
||||||
if (credentials != null)
|
if (credentials != null)
|
||||||
AuthenticationProvider = CreateAuthenticationProvider(credentials.Copy());
|
AuthenticationProvider = CreateAuthenticationProvider(credentials.Copy());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user