Table of Contents

Class WebProxy

Namespace
Amazon.Runtime.Internal.Util
Assembly
AWSSDK.Core.dll

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

proxyHost string
proxyPort int

WebProxy(Uri)

Set the ProxyUri

public WebProxy(Uri proxyUri)

Parameters

proxyUri Uri

Properties

Credentials

Proxy Credentials property

public ICredentials Credentials { get; set; }

Property Value

ICredentials

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

Returns

bool