ApplicationEndpoint.SetProxyInformation Method

Definition

Overloads

SetProxyInformation(ConnectionContext)

Sets the information about the next hop proxy.

SetProxyInformation(String, Int32)
Obsolete.

Sets the information about the next hop proxy.

SetProxyInformation(ConnectionContext)

Sets the information about the next hop proxy.

public:
 void SetProxyInformation(Microsoft::Rtc::Signaling::ConnectionContext ^ proxyConnectionContext);
public void SetProxyInformation (Microsoft.Rtc.Signaling.ConnectionContext proxyConnectionContext);
member this.SetProxyInformation : Microsoft.Rtc.Signaling.ConnectionContext -> unit
Public Sub SetProxyInformation (proxyConnectionContext As ConnectionContext)

Parameters

proxyConnectionContext
ConnectionContext

Connection information used to connect to a proxy.

Exceptions

Thrown if the supplied proxyConnectionContext is null.

Thrown if the supplied host is empty.

Thrown if the supplied port is out of range.

Thrown if the endpoint is registered or auto-provisioned.

Remarks

This is an advanced API to be used by applications capable of working with multiple next hop proxies. This API can be used if the applications want to change the next hop proxy information.

Applies to

SetProxyInformation(String, Int32)

Caution

Please use the overload that takes ConnectionContext as an argument.

Sets the information about the next hop proxy.

public:
 void SetProxyInformation(System::String ^ proxyHost, int proxyPort);
[System.Obsolete("Please use the overload that takes ConnectionContext as an argument.")]
public void SetProxyInformation (string proxyHost, int proxyPort);
member this.SetProxyInformation : string * int -> unit
Public Sub SetProxyInformation (proxyHost As String, proxyPort As Integer)

Parameters

proxyHost
String

The proxy host to use as the first hop instead of a direct connection to the other endpoint.

proxyPort
Int32

The port to use for connecting to a proxy.

Attributes

Exceptions

Thrown if the supplied proxyHost is null.

Thrown if the supplied proxyHost is empty.

Thrown if the supplied proxyPort is out of range.

Thrown if the endpoint is registered or auto-provisioned.

Remarks

This is an advanced API to be used by applications capable of working with multiple next hop proxies. This API can be used if the applications want to change the next hop proxy information.

Applies to