Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyProxy : IWebProxy
- {
- public MyProxy(string proxyUri)
- : this(new Uri(proxyUri))
- {
- }
- public MyProxy(Uri proxyUri)
- {
- this.ProxyUri = proxyUri;
- }
- public Uri ProxyUri { get; set; }
- public ICredentials Credentials { get; set; }
- public Uri GetProxy(Uri destination)
- {
- return this.ProxyUri;
- }
- public bool IsBypassed(Uri host)
- {
- return false; /* Proxy all requests */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement