Exemplo n.º 1
0
        // Protected members

        protected WebClientBase(IHttpWebRequestFactory webRequestFactory)
        {
            this.webRequestFactory = webRequestFactory;

            // The Proxy property is non-null by default, and we want to know if the user set the proxy to a blank proxy intentionally.
            // Instead of trying to figure that out, we'll set the Proxy property here, and assume that whatever the property is from hereon out is what the user wants.

            webRequestFactory.GetOptions().CopyTo(this);
        }