Example #1
0
        public static void AdapterExample()
        {
            string     webHost    = "https://google.com";
            HttpClient webService = new HttpClient();

            webService.BaseAddress = new Uri(webHost);
            WebAdapter adapter = new WebAdapter();

            adapter.Connect(webService);
            WebClient client = new WebClient(adapter);

            client.DoWork();
        }