Initiates a service request.

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

Syntax

Visual Basic (Declaration)
Public 
Function 
Service ( _
	
signalingHeaders 
As 
IEnumerable(
Of 

SignalingHeader), _
	
target 
As 

RealTimeAddress _
) 
As 

SipResponseData
C#
public 

SipResponseData 
Service(
	
IEnumerable<

SignalingHeader> 
signalingHeaders,
	

RealTimeAddress 
target
)
Visual C++
public:

SipResponseData^ 
Service(
	
IEnumerable<

SignalingHeader^>^ 
signalingHeaders, 
	

RealTimeAddress^ 
target
)
JavaScript
function 
service(
signalingHeaders, 
target);

Parameters

signalingHeaders
Type: IEnumerable < (Of < ( SignalingHeader > ) > )
"Accepted" headers that you may want to add in the service request.
target
Type: Microsoft.Rtc.Signaling . . :: . RealTimeAddress
The address to be used in "To" header of the service request.

Return Value

Returns the response data.

Exceptions

Exception Condition
InvalidOperationException Thrown when this method is invoked multiple times using the same asyncResult.
ArgumentNullException Thrown when the resultparameter is null.
ArgumentException Thrown when the resultparameter is invalid.
Microsoft.Rtc.Signaling . . :: . FailureResponseException Thrown when the remote side returns a failure response for this operation.
Microsoft.Rtc.Signaling . . :: . OperationTimeoutException Thrown when the this operation timed out.
Microsoft.Rtc.Signaling . . :: . OperationFailureException Thrown when any of the sub operations of this operation failed due to invalid object state.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when any of the sub operations of this operation failed due to SIP related errors like connection failure, Authentication failure.

See Also