SignalingSession.SendProvisionalResponse Method (Int32, String, IEnumerable<SignalingHeader>, Boolean)
Sends a provisional response synchronously with optional support for early media.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub SendProvisionalResponse ( _
responseCode As Integer, _
responseText As String, _
signalingHeaders As IEnumerable(Of SignalingHeader), _
needEarlyMediaSupport As Boolean _
)
'Usage
Dim instance As SignalingSession
Dim responseCode As Integer
Dim responseText As String
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim needEarlyMediaSupport As Boolean
instance.SendProvisionalResponse(responseCode, _
responseText, signalingHeaders, _
needEarlyMediaSupport)
public void SendProvisionalResponse(
int responseCode,
string responseText,
IEnumerable<SignalingHeader> signalingHeaders,
bool needEarlyMediaSupport
)
Parameters
- responseCode
Type: System.Int32
The provisional response code.
- responseText
Type: System.String
Reason phrase to send out with the response. If null or empty default reason phrase will be generated.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
The collection of signaling headers. Can be null.
- needEarlyMediaSupport
Type: System.Boolean
True to indicate that the application wants to send offer/answer in the response.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the response code is not provisional. |
InvalidOperationException | Thrown when called in an invalid state. |
RealTimeException | Thrown when a transport error occurred while sending a response. |