public static async Task <CustomHttpsClient> CreateWithProxy(string host, int port, string version, string proxyUrl) { var httpsClient = new CustomHttpsClient(host, port, version, proxyUrl); await httpsClient.HandleConnect(); return(httpsClient); }
public static async Task <CustomHttpsClient> CreateWithoutProxy(string host, int port, string version) { var httpsClient = new CustomHttpsClient(host, port, version); await httpsClient.InitializeWithoutProxy(host, port); return(httpsClient); }