mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-22 13:52:54 +00:00
Fix exception when creating rest client for mono runtime
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user