Partilhar via


SignalingSession.SetConnection Method

NOTE: This API is now obsolete.

This method is obsolete in UCMA 3.0 and will be removed from later versions. In its place use the ConnectionContext property on the SignalingSessionEstablishOptions class. Sets the connection to use for the outgoing signaling session before calling Participate. The initial Invite for the session will use this connection instead of getting the connection based on endpoint settings. This method can be used only for the SipPeerToPeer endpoint. Signaling sessions for SipEndpoint will use the connection maintained by SipEndpoint. The transport specified for the connection should be as secure as the tranport needed to send the Invite or else the Participate method call may fail. IMPORTANT: This is an advanced API. To work properly, the application should call this method before every redirect as well. The RedirectReceived event callback handler in the application should use TryThis and call this method before returning.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
<ObsoleteAttribute("This method will be removed from future versions. Please use the ConnectionContext property of the SignalingSessionEstablishOptions instead.")> _
Public Function SetConnection ( _
    proxyHost As String, _
    port As Integer, _
    transport As SipTransportType _
) As RealTimeConnection
'Usage
Dim instance As SignalingSession
Dim proxyHost As String
Dim port As Integer
Dim transport As SipTransportType
Dim returnValue As RealTimeConnection

returnValue = instance.SetConnection(proxyHost, _
    port, transport)
[ObsoleteAttribute("This method will be removed from future versions. Please use the ConnectionContext property of the SignalingSessionEstablishOptions instead.")]
public RealTimeConnection SetConnection(
    string proxyHost,
    int port,
    SipTransportType transport
)

Parameters

  • proxyHost
    Type: System.String
    The proxy host for the connection.

Return Value

Type: Microsoft.Rtc.Signaling.RealTimeConnection
Returns the RealTimeConnection created.

Exceptions

Exception Condition
RealTimeException

Thrown when a transport error occurs while sending a response.

See Also

Reference

SignalingSession Class

SignalingSession Members

Microsoft.Rtc.Signaling Namespace