FireHorse by Infodinamica Limitada

<PackageReference Include="FireHorse" Version="0.0.8" />

 ProxyFactory

public class ProxyFactory
using System.Net; namespace FireHorse { public class ProxyFactory { private static volatile ProxyFactory _instance; private static object _syncRoot = new object(); public static ProxyFactory Instance { get { if (_instance == null) { lock (_syncRoot) { if (_instance == null) _instance = new ProxyFactory(); } } return _instance; } } private ProxyFactory() { } public WebProxy GetWithDefaultCredentials(string proxyUrl) { WebProxy webProxy = new WebProxy(proxyUrl, false); webProxy.Credentials = CredentialCache.DefaultCredentials; return webProxy; } } }