Class WebProxy
Custom WebProxy implementation that creates a webproxy based on user inputs(Host name and port number)
public class WebProxy : IWebProxy
- Inheritance
-
WebProxy
- Implements
- Inherited Members
Constructors
WebProxy(string)
public WebProxy(string proxyUri)
Parameters
proxyUri
string
WebProxy(string, int)
Create a Uri based on the user inputs(Host name and port number)
public WebProxy(string proxyHost, int proxyPort)
Parameters
WebProxy(Uri)
Set the ProxyUri
public WebProxy(Uri proxyUri)
Parameters
proxyUri
Uri
Properties
Credentials
Proxy Credentials property
public ICredentials Credentials { get; set; }
Property Value
ProxyUri
Proxy Uri property
public Uri ProxyUri { get; set; }
Property Value
- Uri
Methods
GetProxy(Uri)
Getter to fetch the set proxy
public Uri GetProxy(Uri destination)
Parameters
destination
Uri
Returns
- Uri
IsBypassed(Uri)
Method to determine if the proxy should be bypassed when accessing an internet source
public bool IsBypassed(Uri host)
Parameters
host
Uri