SipServiceRequest.Service Method
Initiates a service request.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function Service ( _
signalingHeaders As IEnumerable(Of SignalingHeader), _
target As RealTimeAddress _
) As SipResponseData
'Usage
Dim instance As SipServiceRequest
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim target As RealTimeAddress
Dim returnValue As SipResponseData
returnValue = instance.Service(signalingHeaders, _
target)
public SipResponseData Service(
IEnumerable<SignalingHeader> signalingHeaders,
RealTimeAddress target
)
Parameters
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
"Accepted" headers that you may want to add in the service request. Can be null.
- target
Type: Microsoft.Rtc.Signaling.RealTimeAddress
The address to be used in "To" header of the service request.
Return Value
Type: Microsoft.Rtc.Signaling.SipResponseData
Returns the response data.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when this method is invoked multiple times using the same asyncResult. |
ArgumentNullException | Thrown when the target parameter is null. |
ArgumentException | Thrown when the target parameter is invalid. |
FailureResponseException | Thrown when the remote side returns a failure response for this operation. |
OperationTimeoutException | Thrown when the this operation timed out. |
OperationFailureException | Thrown when any of the sub operations of this operation failed due to invalid object state. |
RealTimeException | Thrown when any of the sub operations of this operation failed due to SIP related errors like connection failure, Authentication failure. |