1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-07 16:06:15 +00:00

Fix exception when creating rest client for mono runtime

This commit is contained in:
JKorf 2025-02-08 14:25:19 +01:00
parent 29b0875960
commit 1a49fc8251

View File

@ -46,6 +46,7 @@ namespace CryptoExchange.Net.Requests
handler.DefaultProxyCredentials = CredentialCache.DefaultCredentials; handler.DefaultProxyCredentials = CredentialCache.DefaultCredentials;
} }
catch (PlatformNotSupportedException) { } catch (PlatformNotSupportedException) { }
catch (NotImplementedException) { } // Mono runtime throws NotImplementedException
if (proxy != null) if (proxy != null)
{ {