SipServiceRequest.EndService Method
Ends the service request and returns the response.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function EndService ( _
result As IAsyncResult _
) As SipResponseData
'Usage
Dim instance As SipServiceRequest
Dim result As IAsyncResult
Dim returnValue As SipResponseData
returnValue = instance.EndService(result)
public SipResponseData EndService(
IAsyncResult result
)
Parameters
- result
Type: System.IAsyncResult
The reference to the pending asynchronous operation.
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 result parameter is null. |
ArgumentException | Thrown when the result 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. |