SetProxy method
Use this method to configure Eyes so that it will interact with the Eyes server via a proxy.
By default, the SDK interacts directly with the Eyes server. If necessary, you can define a proxy server so that the SDK will interact with the proxy server, and the proxy server will relay the interaction to the Eyes server.
Syntax
IConfiguration configval = config.SetProxy(proxy);
config.Proxy = configval;
= config.Proxy;
Note that this feature is available as both a method and a property.
Parameters
- proxy
- Type:WebProxy
- An object that provides the user credentials.
Return value
- Type: IConfiguration
-
The value returned is the object that called the method.
This allows you to use a fluent style to call the
setXXXX
methods of the Configuration class.