Compartir a través de


IWMSProxyContext Object (C#)

The IWMSProxyContext object is implemented by a cache proxy plug-in and called by the server. It provides methods that enable a plug-in to discover upstream proxy settings and credentials that can be used, for example, when chaining together cache proxy servers.

By default, a network data source plug-in uses the existing server-level proxy settings and credentials. However, for chaining multiple upstream proxies, the IWMSProxyContext object enables your plug-in to discover settings and credentials for each upstream proxy server it connects to. These settings and credentials can be configured on a per-protocol and per-URL basis.

Note

   This object is available only on Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; and Windows Server 2008.

The IWMSProxyContext object exposes the following properties and methods.

Method

Description

FindProxyForURL

Retrieves the name and port number of an upstream proxy server.

GetCredentials

Retrieves a user name and password that can be used to respond to the security challenge of an upstream proxy server.

See Also

Concepts

Custom Plug-in Objects (C#)