Partilhar via


SignalingSession.Participate Method (IEnumerable<SignalingHeader>)

Synchronously participates in a session. This method is not recommended for UI threads or scalable server applications.

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

Syntax

'Declaration
Public Function Participate ( _
    signalingHeaders As IEnumerable(Of SignalingHeader) _
) As SipMessageData
'Usage
Dim instance As SignalingSession
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim returnValue As SipMessageData

returnValue = instance.Participate(signalingHeaders)
public SipMessageData Participate(
    IEnumerable<SignalingHeader> signalingHeaders
)

Parameters

Return Value

Type: Microsoft.Rtc.Signaling.SipMessageData
Returns the Sip message (200 response or ACK request)

Exceptions

Exception Condition
InvalidOperationException

Thrown when the session is not in a valid state to accept, or when Accept is called again while another Accept is pending.

ArgumentException

Thrown when invalid arguments are passed.

ArgumentNullException

Thrown when some other failure occurs.

Remarks

This method is now deprecated in favor of the BeginEstablish and BeginAccept APIs.

See Also

Reference

SignalingSession Class

SignalingSession Members

Participate Overload

Microsoft.Rtc.Signaling Namespace