Example #1
0
        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);
        }
Example #2
0
        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);
        }